Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2023
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.36 KB | None | 0 0
  1. MyView
  2.    .background {
  3.       GeometryReader { geo in
  4.           Color.clear
  5.                .onAppear {
  6.                   //Assign a name to the coordinate space of the views you want to know informations about and use geo.frame(in: .named("the name")). Also can't abuse this cause GeometryReaders eventually cause bad performance
  7.                }
  8.           }
  9.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement