Patrick
Patrick

Reputation: 53

How can I add suggestions to TextFields in SwiftUI for MacOS (see gif below)?

This is the combo box effect I'm going for:

Pop up combo box after choosing "Add Date", which shows several suggestions including "Today" and "Tomorrow"

Any ideas are appreciated as this is my first SwiftUI project.

Upvotes: 2

Views: 1937

Answers (1)

Stephan Michels
Stephan Michels

Reputation: 1082

Yes, there nothing you can use out-of-the-box. I tried to create simple demo how you can create such a suggestion menu.

SuggestionsDemo Project on GitHub

Upvotes: 3

Related Questions