Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 390 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 390 Bytes

SwiftUI TagView

Creating a simple selectable tag view in SwiftUI is quite a challenge. here is a simple & elegant example of it.

Output Example

Usage:

Just copy the TagView.swift file in your project & write your tags like so:

TagView(tags: [TagViewItem(title: "cat", isSelected: false), TagViewItem(title: "dog", isSelected: true)])