Created
February 17, 2021 22:14
-
-
Save karigrooms/bb098dcecd344b5088bed36eea069b32 to your computer and use it in GitHub Desktop.
SwiftUI composition order of view modifiers for Lessons in SwiftUI blog post (4th example)
This file contains hidden or 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
import SwiftUI | |
struct ExampleView: View { | |
var body: some View { | |
VStack(alignment: .center, spacing: 16) { | |
Text("One") | |
Text("Two") | |
Text("Three (override parent modifier)").font(.headline) | |
Text("Four") | |
} | |
.font(.body) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment