Swiftpack.co -  what3words/w3w-swift-components as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
what3words/w3w-swift-components
A swift library to use What3words autosuggest
.package(url: "https://github.com/what3words/w3w-swift-components.git", from: "v2.1.2")

what3words w3w-swift-components

Overview

A Swift library for what3words UI components. These depend on the what3words swift wrapper.

For information on using this package with Objective-C read this

If you are upgrading from any version 1.x.x, see the upgrade guide.

AutoSuggest Text Field

Full documentation can be found at [Documentation/autosuggest.md](https://github.com/what3words/w3w-swift-components/blob/master/Documentation/autosuggest.md).

An iOS UIKit example project can be found at Examples/TextField/TextField.xcodeproj

W3WAutoSuggestTextField is a UITextField that will suggest three word addresses as the user types.

This conforms to our W3WAutoSuggestTextFieldProtocol for returning any addresses the user choses, as well as to set opt<img style="max-width:100%;" src="https://raw.github.com/what3words/w3w-swift-components/master/toSuggest Search Controller

Full documentation can be found at [Documentation/autosuggest.md](https://github.com/what3words/w3w-swift-components/blob/master/Documentation/autosuggest.md).

An iOS UIKit example project can be found at Examples/TextField/TextField.xcodeproj

W3WAutoSuggestSearchController is a UISearchController that will suggest three word addresses as the user types. This allows embedding this functionality in things such asUINavigationController and MKMap

This also conforms to our W3WAutoSuggestTextFieldProtocol for returning any addresses the user choses, as well as to set options.

Installation

Authentication

To use this library you’ll need a what3words API key, which can be signed up for here. If you wish to use the Voice API calls then you must add a Voice API plan to your account.

Swift Package Manager

You can install with Swift Package Manager by adding the URL below to Swift Packages under your project settings:

https://github.com/what3words/w3w-swift-components.git

Import the libraries:

import W3WSwiftApi
import W3WSwiftComponents
import CoreLocation<img style="max-width:100%;" src="https://raw.github.com/what3words/w3w-swift-components/master/# Note:

If you are using the Voice API on device, you should include Microphone permissions in your Info.plist:

<img style="max-width:100%;" src="Documentation/plist2.png" width="75%">


GitHub

link
Stars: 0
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API