Skip to content

Instantly share code, notes, and snippets.

@mokagio
Last active July 20, 2021 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mokagio/4ef3901927c9b01e044862f2b9494a49 to your computer and use it in GitHub Desktop.
Save mokagio/4ef3901927c9b01e044862f2b9494a49 to your computer and use it in GitHub Desktop.
SwiftUI simple view body printout – Xcode 13 beta 2
▿ VStack<TupleView<(Text, Text)>>
▿ _tree : Tree<_VStackLayout, TupleView<(Text, Text)>>
▿ root : _VStackLayout
▿ alignment : HorizontalAlignment
▿ key : AlignmentKey
- bits : 2
- spacing : nil
▿ content : TupleView<(Text, Text)>
▿ value : 2 elements
▿ .0 : Text
▿ storage : Storage
▿ anyTextStorage : <LocalizedTextStorage: 0x60000181a8f0>
▿ modifiers : 1 element
▿ 0 : Modifier
- anyTextModifier : <BoldTextModifier: 0x6000039203a0>
▿ .1 : Text
▿ storage : Storage
▿ anyTextStorage : <LocalizedTextStorage: 0x60000181a490>
- modifiers : 0 elements
import SwiftUI
struct ExampleView: View {
var body: some View {
VStack {
Text("Title").bold()
Text("Subtitle")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment