Merge pull request #7 from TKennyMat/master updated read me with required tag font argument
Merge pull request #7 from TKennyMat/master
updated read me with required tag font argument
tag font
TagLayoutViewTagLayoutView is a library made with SwiftUI for easy tag display.
struct TagListView: View { var body: some View { GeometryReader { geometry in TagLayoutView( ["tagA", "tagB", "tagC"], tagFont: UIFont.systemFont(ofSize: 34, weight: UIFont.Weight.thin) padding: 20, parentWidth: geometry.size.width) { tag in Text(tag) .bold() .fixedSize() .padding(EdgeInsets(top: 4, leading: 12, bottom: 4, trailing: 12)) .foregroundColor(Color.green) .background(Color.white) .overlay(RoundedRectangle(cornerRadius: 32).stroke(Color.green, lineWidth: 2.0)) }.padding(.all, 16) } } }
TagLayoutView is available via Swift Package Manager.
TagLayoutView
Using Xcode 11, go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/yotsu12/TagLayoutView
File -> Swift Packages -> Add Package Dependency
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
TagLayoutView
TagLayoutViewTagLayoutView is a library made with SwiftUI for easy tag display.
Usage
Installation
TagLayoutView
is available via Swift Package Manager.Using Xcode 11, go to
File -> Swift Packages -> Add Package Dependency
and enter https://github.com/yotsu12/TagLayoutView