Skip to content

Instantly share code, notes, and snippets.

@WildStudio
Last active September 4, 2019 14:25
Show Gist options
  • Save WildStudio/432b642c611d9598874f4a0123a34929 to your computer and use it in GitHub Desktop.
Save WildStudio/432b642c611d9598874f4a0123a34929 to your computer and use it in GitHub Desktop.
SwiftUI - Customising the frame in our indicator
struct ContentView: View {
var body: some View {
VStack {
Text("SwiftUI")
Indicator()
}.frame(width: 150, height: 100, alignment: .center)
}
}
struct Indicator: View {
var body: some View {
Rectangle().fill(Color.green)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment