Skip to content

Instantly share code, notes, and snippets.

@MemoryReload
Forked from BetterProgramming/returnSize.swift
Last active July 5, 2022 12:24
Show Gist options
  • Save MemoryReload/5e49aaed7053f42527173af88a373a82 to your computer and use it in GitHub Desktop.
Save MemoryReload/5e49aaed7053f42527173af88a373a82 to your computer and use it in GitHub Desktop.
struct returnSize: View {
var color: Color = .clear
var body: some View {
GeometryReader { geometry in
color
.onAppear(perform: {
print("returnSize: \(geometry.size)")
})
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment