Skip to content

Fix example project and hide mutations in autocomplete API #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Examples/Examples/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ class ViewController: MessageViewController, UITableViewDataSource, UITableViewD

// Set custom attributes for an autocompleted string
let tintColor = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1)
messageAutocompleteController.autocompleteTextAttributes = ["@": [.font: UIFont.preferredFont(forTextStyle: .body), .foregroundColor: tintColor, .backgroundColor: tintColor.withAlphaComponent(0.1)]]
messageAutocompleteController.registerAutocomplete(prefix: "@", attributes: [
.font: UIFont.preferredFont(forTextStyle: .body),
.foregroundColor: tintColor,
.backgroundColor: tintColor.withAlphaComponent(0.1)
])

messageAutocompleteController.delegate = self

Expand Down
4 changes: 2 additions & 2 deletions Examples/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: ../MessageViewController.podspec

SPEC CHECKSUMS:
MessageViewController: 619f0c8253f4eb36f69c906d5a38592de857a433
MessageViewController: 3aa9b7b422677de3a8bc026ef39b0c0f83ccc185

PODFILE CHECKSUM: 74208e93c3daf191e681c80fcdf956f1603f9016

COCOAPODS: 1.4.0.rc.1
COCOAPODS: 1.4.0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Examples/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading