SwiftUI Background stripes and other texture patterns.
import SwiftUI
import Stripes
struct ContentView: View {
var body: some View {
ZStack {
Stripes(config: .default)
Text("Hello, world!")
.font(.system(size: 50))
.bold()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
Swift
File -> Swift Packages -> Add Package Dependency
https://github.com/eneko/Stripes
http://github.com/eneko/Stripes/zipball/master
#SwiftUI #Background