brampf / SUEModifier

SwiftUI View modifiers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SUEModifier

SwiftUI View modifiers

MIT License Swift 5.3

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"))

ConditionalOverlay

ObservingOverlay

Rectangle().foregroundColor(.gray)
    .overlay(Demo(), keyPath: \Demo.test)

ObservingOverlay

OverlayStyle

Rectangle().foregroundColor(.gray)
    .overlay(Text("Bonjour!").overlayStyle("Français"))

OverlayStyle

Hideable

HStack{
    Text("Hello").hide($hidden1)
    Text(" World").hide($hidden2)
}

Hideable

License

MIT license; see LICENSE. (c) 2020

About

SwiftUI View modifiers

License:MIT License


Languages

Language:Swift 100.0%