What is intrinsic content size?
Generated on 10/3/2024
1 search
Intrinsic content size refers to the natural size of a view based on its content. In the context of SwiftUI, volumes inherit their minimum and maximum sizes from the size of their content by default. This behavior is provided by the window resizeability modifier, which means that the volume's minimum and maximum sizes are determined by the size of its views. If you specify a frame with specific dimensions, the volume size is fixed to match that frame. However, if you specify minimum values for the frame, the view can resize larger, and the volume will allow resizing accordingly. Specifying a maximum size will cap the size of the volume, allowing for smooth resizing when interacting with resize handles. This behavior allows developers to drive the size of their volume in code, providing flexibility in how content is displayed and interacted with.
Design great visionOS apps
Find out how to create compelling spatial computing apps by embracing immersion, designing for eyes and hands, and taking advantage of depth, scale, and space. We’ll share several examples of great visionOS apps and explore how their designers approached creating new experiences for the platform.
Dive deep into volumes and immersive spaces
Discover powerful new ways to customize volumes and immersive spaces in visionOS. Learn to fine-tune how volumes resize and respond to people moving around them. Make volumes and immersive spaces interact through the power of coordinate conversions. Find out how to make your app react when people adjust immersion with the Digital Crown, and use a surrounding effect to dynamically customize the passthrough tint in your immersive space experience.
Get started with Dynamic Type
Dynamic Type lets people choose their preferred text size across the system and all of their apps. To help you get started supporting Dynamic Type, we’ll cover the fundamentals: How it works, how to find issues with scaling text in your app, and how to take practical steps using SwiftUI and UIKit to create a great Dynamic Type experience. We’ll also show how you can best use the Large Content Viewer to make navigation controls accessible to everyone.
Platforms State of the Union
Discover the newest advancements on Apple platforms.