Referencing size/location of child Views

In UIKit we could do things like:


func didTap(_ sender: AnyObject?) {
     guard let sender = sender as? UIView else { return }
     // use frame of sender to present a popup, etc...
}


Will anything similar be made available for SwiftUI? Some method of refering back to the frame of the View that initiates an event would seem very handy for popovers. `Popover` has `targetPoint` and `targetRect` but it's not clear how those can actually be determined during construction of the body when layout hasn't even occurred yet.

I've attempted to place a flexible UIView above my View in a Zstack. This does allow me to find my View's position on the screen, but seems like a hack. Code here: gist.github.com/timothycosta/2caf5f1a1c175ffa966f098e3299581b

Referencing size/location of child Views
 
 
Q