Skip to content

Commit 8497b96

Browse files
committed
update README
1 parent 2ca7648 commit 8497b96

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# AutoCompleteTextField
22

33
[![CI Status](https://img.shields.io/badge/build-passed-brightgreen.svg)](https://img.shields.io/badge/build-passed-brightgreen.svg)
4-
[![Version](https://img.shields.io/badge/pod-v0.1.5-blue.svg)](https://img.shields.io/badge/pod-v0.1.5-blue.svg)
4+
[![Version](https://img.shields.io/badge/pod-v0.5.0-blue.svg)](https://img.shields.io/badge/pod-v0.5.0-blue.svg)
55
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://img.shields.io/badge/Lisence-MIT-yellow.svg)
66
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
77
[![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)](https://img.shields.io/badge/platform-ios-lightgrey.svg)
@@ -18,8 +18,9 @@
1818

1919
## Requirements
2020

21-
- iOS 10.0+ / Mac OS X 10.14+
22-
- Xcode 10.0+
21+
- iOS 10.0+
22+
- Xcode 11+
23+
- Swift 5+
2324

2425

2526
## Installation
@@ -89,22 +90,24 @@ let weightedDomains = [g1, g2, g3, g4] // [ACTFDomain]
8990
// Storing
9091

9192
// store single
92-
if g1.storeDomainForKey("Domain") {
93+
if g1.store(withKey: "Domain") {
9394
print("Store success")
9495
}
9596

9697
// store multiple
97-
if ACTFDomain.storeDomainsForKey(domains: weightedDomains, key: "Domains") {
98+
if ACTFDomain.store(domains: weightedDomains, withKey: "Domains") {
9899
print("Store success")
99100
}
100101

102+
// Retrieving
103+
101104
// retrieved single
102-
if let domain = ACTFDomain.retrievedDomainForKey("Domain") {
105+
if let domain = ACTFDomain.domain(forKey: "Domain") {
103106
print("Retrieved: ", domain)
104107
}
105108

106109
// retrieved multiple
107-
if let domains = ACTFDomain.retrievedDomainsForKey("Domains") {
110+
if let domains = ACTFDomain.domains(forKey: "Domains") {
108111
print("Retrieved: ", domains)
109112
}
110113

0 commit comments

Comments
 (0)