SUEModifier
SwiftUI View modifiers
SUE stands for SwiftUI Extras and is a collection of small SwiftUI libraries for various recurring use cases
Gallery
ConditionalOverlay
Rectangle().foregroundColor(.gray)
.overlay($hidden, Text("Hej Hej").overlayStyle("Goddåg"))
ObservingOverlay
Rectangle().foregroundColor(.gray)
.overlay(Demo(), keyPath: \Demo.test)
OverlayStyle
Rectangle().foregroundColor(.gray)
.overlay(Text("Bonjour!").overlayStyle("Français"))
Hideable
HStack{
Text("Hello").hide($hidden1)
Text(" World").hide($hidden2)
}
License
MIT license; see LICENSE. (c) 2020