You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`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'
40
47
41
48
Then run `pod install`.
42
49
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`.
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
128
145
129
146
Look at the source code of the default cells for inspiration.
130
147
131
-
### `SuggestionAccessoryRow<T>`
148
+
### SuggestionAccessoryRow<T>
132
149
`SuggestionAccessoryRow `uses a generic `SuggestionCollectionCell` cell whose generic parameter is the `UICollectionViewCell` class used in the `inputAccessoryView`.
133
150
134
151
* 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`.
0 commit comments