Developer007
Developer007

Reputation: 437

Multiple Keywords in textfield or textView in Swift

I have to show keywords having a cross button in a textfield or textView. I am trying to get data from server that is keyword names that i want to show in a single line horizontally with a cross button on each keyword and can be disappear as soon as we hit on cross button. Any Help would be greatly appreciated. Thanks

Upvotes: 2

Views: 210

Answers (1)

Cyril
Cyril

Reputation: 1649

What you need is an equivalent of the Cocoa NSTokenField (https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTokenField_Class/).

You should have a look to Cocoa Controls to find one that can suits you (https://www.cocoacontrols.com/search?q=tokenfield).

Upvotes: 1

Related Questions