Last active
September 4, 2019 14:25
-
-
Save WildStudio/432b642c611d9598874f4a0123a34929 to your computer and use it in GitHub Desktop.
SwiftUI - Customising the frame in our indicator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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