Browse Source

Update to Swift 3.0

Evgenii Neumerzhitckii 9 years ago
parent
commit
d97caf8e07
2 changed files with 12 additions and 20 deletions
  1. 1 1
      KeychainSwift.podspec
  2. 11 19
      README.md

+ 1 - 1
KeychainSwift.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name        = "KeychainSwift"
-  s.version     = "3.0.16"
+  s.version     = "4.0.0"
   s.license     = { :type => "MIT" }
   s.homepage    = "https://github.com/marketplacer/keychain-swift"
   s.summary     = "A library for saving text and data in the Keychain with Swift."

+ 11 - 19
README.md

@@ -9,15 +9,15 @@
 
 This is a collection of helper functions for saving text and data in the Keychain.
  As you probably noticed Apple's keychain API is a bit verbose. This library was designed to provide shorter syntax for accomplishing a simple task: reading/writing text values for specified keys:
- 
+
  ```Swift
 let keychain = KeychainSwift()
 keychain.set("hello world", forKey: "my key")
 keychain.get("my key")
  ```
- 
- The Keychain library includes the following features: 
- 
+
+ The Keychain library includes the following features:
+
  * <a href="#usage">Get, set and delete string, boolean and NSData Keychain items</a>
  * <a href="#keychain_item_access">Specify item access security level</a>
  * <a href="#keychain_synchronization">Synchronize items through iCloud</a>
@@ -32,35 +32,27 @@ Keychain is a secure storage. You can store all kind of sensitive data in it: us
 
 There are three ways you can add KeychainSwift to your Xcode project.
 
-**Add source (iOS 7+)**
+#### Add source (iOS 7+)
 
 Simply add [KeychainSwiftDistrib.swift](https://github.com/marketplacer/keychain-swift/blob/master/Distrib/KeychainSwiftDistrib.swift) file into your Xcode project.
 
-**Setup with Carthage (iOS 8+)**
+#### Setup with Carthage (iOS 8+)
 
-Alternatively, add `github "marketplacer/keychain-swift" ~> 3.0` to your Cartfile and run `carthage update`.
+Alternatively, add `github "marketplacer/keychain-swift" ~> 4.0` to your Cartfile and run `carthage update`.
 
-**Setup with CocoaPods (iOS 8+)**
+#### Setup with CocoaPods (iOS 8+)
 
 If you are using CocoaPods add this text to your Podfile and run `pod install`.
 
     use_frameworks!
     target 'Your target name'
-    pod 'KeychainSwift', '~> 3.0'
-
-Here is how to use KeychainSwift in a *WatchKit extension* with CocoaPods.
-
-    use_frameworks!
+    pod 'KeychainSwift', '~> 4.0'
 
-    target 'YourWatchApp Extension Target Name' do
-      platform :watchos, '2.0'
-      pod 'KeychainSwift', '~> 3.0'
-    end
 
+#### Legacy Swift versions
 
-**Setup in Swift 1.2 project**
+Setup a [previous version](https://github.com/marketplacer/keychain-swift/wiki/Legacy-Swift-versions) of the library if you use an older version of Swift.
 
-Use the [previous version of the library](https://github.com/marketplacer/keychain-swift/wiki/Swift-1.2-setup).
 
 **iOS 7 support**