Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created May 25, 2022 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BetterProgramming/ca0f28a34e0c44dfc0c20aeb3194adfd to your computer and use it in GitHub Desktop.
Save BetterProgramming/ca0f28a34e0c44dfc0c20aeb3194adfd to your computer and use it in GitHub Desktop.
struct returnSize: View {
var body: some View {
GeometryReader { geometry in
Color.clear
.onAppear(perform: {
print("geo \(geometry.size)")
})
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment