Skip to content
Open
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
2 changes: 1 addition & 1 deletion PARTagPicker/Classes/PARTagPickerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#import "PARTagColorReference.h"
#import "UIView+NibInitable.h"

CGFloat const COLLECTION_VIEW_HEIGHT = 39.0;
CGFloat const COLLECTION_VIEW_HEIGHT = 44.0;
static CGFloat const TAGCOLLECTION_CELL_HEIGHT = 27.0;
static CGFloat const TAG_TEXTFIELD_MAXWIDTH = 150;
static NSString * const PARTagCollectionViewCellIdentifier = @"PARTagCollectionViewCellIdentifier";
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ override func viewDidLoad() {
super.viewDidLoad()
// Add the controller and view.
let tagController = PARTagPickerViewController()
addChildViewController(tagController)
addChild(tagController)
tagController.view.frame = CGRect(x: 0, y: 64, width: view.bounds.width, height: COLLECTION_VIEW_HEIGHT)
view.addSubview(tagController.view)
tagController.didMove(toParentViewController: self)
tagController.didMove(toParent: self)

// Customize appearance and data.
tagController.delegate = self
tagController.allTags = ["one fish","two fish"," red fish", "blue fish"]
tagController.chosenTags = ["with a fox", "in a box", "anywhere"]
tagController.allowsNewTags = true
tagController.view.backgroundColor = .orange
let colors = PARTagColorReference()
let colors = PARTagColorReference()!
colors.highlightedTagTextColor = .white
colors.highlightedTagBackgroundColor = .blue
tagController.tagColorRef = colors
Expand Down