Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement