Skip to content

Commit 3786f50

Browse files
committed
Version bump 3.2.0
1 parent 018a502 commit 3786f50

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "xmartlabs/Eureka" ~> 5.0
1+
github "xmartlabs/Eureka" ~> 5.2

README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@
44
</p>
55

66
## Contents
7-
* [Introduction](#introduction)
8-
* [Installation](#installation)
9-
* [Usage](#usage)
10-
* [Running the examples](#running-the-examples)
11-
* [Customization](#customization)
12-
* [Dependencies](#dependencies)
13-
* [Requirements](#requirements)
14-
* [Getting involved](#getting-involved)
7+
- [Contents](#contents)
8+
- [Introduction](#introduction)
9+
- [Installation](#installation)
10+
- [CocoaPods](#cocoapods)
11+
- [Swift Package Manager](#swift-package-manager)
12+
- [Usage](#usage)
13+
- [Conform to `SuggestionValue` protocol](#conform-to-suggestionvalue-protocol)
14+
- [Instantiate the row](#instantiate-the-row)
15+
- [Running the examples](#running-the-examples)
16+
- [Customization](#customization)
17+
- [SuggestionTableRow<T>](#suggestiontablerowt)
18+
- [SuggestionAccessoryRow<T>](#suggestionaccessoryrowt)
19+
- [Dependencies](#dependencies)
20+
- [Requirements](#requirements)
21+
- [Getting involved](#getting-involved)
1522

1623
## Introduction
1724
`SuggestionRow` is a row extension for the [Eureka](https://github.com/xmartlabs/Eureka) iOS form builder that provides completion suggestions as the user is typing. There are two rows that can be instantiated:
@@ -40,6 +47,16 @@ pod 'SuggestionRow'
4047

4148
Then run `pod install`.
4249

50+
#### Swift Package Manager
51+
52+
[Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code.
53+
54+
After you set up your `Package.swift` manifest file, you can add SuggestionRow as a dependency by adding it to the dependencies value of your `Package.swift`.
55+
56+
dependencies: [
57+
.package(url: "https://github.com/EurekaCommunity/SuggestionRow.git", from: "3.2.0")
58+
]
59+
4360
## Usage
4461
### Conform to `SuggestionValue` protocol
4562
First, the type that you want to provide completion suggestions for must conform to the `SuggestionValue` protocol. For example, consider the following `Scientist struct`:
@@ -128,7 +145,7 @@ Here `MySuggestionTableCell` is the cell of the row itself and `MySuggestionTabl
128145

129146
Look at the source code of the default cells for inspiration.
130147

131-
### `SuggestionAccessoryRow<T>`
148+
### SuggestionAccessoryRow<T>
132149
`SuggestionAccessoryRow `uses a generic `SuggestionCollectionCell` cell whose generic parameter is the `UICollectionViewCell` class used in the `inputAccessoryView`.
133150

134151
* If you want to make minor visual changes to the suggestion cells, use the `customizeCollectionViewCell` callback.
@@ -145,7 +162,7 @@ This is very similar to the example mentioned above for `SuggestionTableRow`.
145162

146163
## Requirements
147164
* iOS 9.3+
148-
* Xcode 10.2+
165+
* Xcode 11+
149166
* Swift 5.0
150167

151168
## Getting involved

SuggestionRow.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SuggestionRow"
3-
s.version = "3.1.0"
3+
s.version = "3.2.0"
44
s.summary = "Eureka row that displays completion suggestions either below the row in a table view or in the input accessory view above the keyboard."
55
s.homepage = "https://github.com/EurekaCommunity/SuggestionRow"
66
s.license = { type: 'MIT', file: 'LICENSE' }
@@ -10,6 +10,6 @@ Pod::Spec.new do |s|
1010
s.ios.deployment_target = '9.3'
1111
s.requires_arc = true
1212
s.ios.source_files = 'Sources/**/*.{swift}'
13-
s.dependency 'Eureka', '~> 5.1'
13+
s.dependency 'Eureka', '~> 5.2'
1414
s.swift_version = "5.0"
1515
end

0 commit comments

Comments
 (0)