Browse Source

Update swift package manager sample

Evgenii Neumerzhitckii 8 years ago
parent
commit
2a7aaff45d
1 changed files with 9 additions and 4 deletions
  1. 9 4
      README.md

+ 9 - 4
README.md

@@ -49,16 +49,21 @@ If you are using CocoaPods add this text to your Podfile and run `pod install`.
 
 
 #### Setup with Swift Package Manager
 #### Setup with Swift Package Manager
 
 
-Add the following text to your Package.swift file and run `swift build`.
+Here is an example of a Package.swift file.
 
 
 ```Swift
 ```Swift
 import PackageDescription
 import PackageDescription
 
 
 let package = Package(
 let package = Package(
-    name: "KeychainSwift",
+    name: "MyApp",
     dependencies: [
     dependencies: [
-        .Package(url: "https://github.com/evgenyneu/keychain-swift.git",
-                 versions: Version(10,0,0)..<Version(11,0,0))
+        .package(url: "https://github.com/evgenyneu/keychain-swift.git", from: "10.0.0"),
+    ],
+    targets: [
+        on.
+        .target(
+            name: "MyApp",
+            dependencies: ["KeychainSwift"]),
     ]
     ]
 )
 )
 ```
 ```