I had a question while researching the layout of spatial views in visionOS. As I understand it, in a 2D plan layout GeometryReader can take the suggested dimensions provided by the parent view. In 3D spatial Layout, GeometryReader3D can obtain additional depth value. However, in layout's SizeThatFits function, ProposedViewSize passed by parent view to child view does not contain depth information. How does GeometryReader3D access this depth information?
Take SwiftUI to the next dimension
RSS for tagDiscuss the WWDC23 Session Take SwiftUI to the next dimension
Posts under wwdc2023-10113 tag
2 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
The source code for visionOS's WWDC23 session, Take SwiftUI to the next dimension, suddenly makes extensive use of GestureState. However, there is no sample code that shows the full extent of GestureState, nor is there any explanation of its use in the video.
I cannot proceed with understanding unless you share information about this.
https://developer.apple.com/videos/play/wwdc2023/10113/?time=969
URL of the capture of the part of the video where GestureState is used. (An error occurred when uploading the image.)
https://imgur.com/a/ZAeWk2k
Sincerely,
Sadao Tokuyama
https://twitter.com/tokufxug
https://www.linkedin.com/in/sadao-tokuyama/