Can I change the modal size on an iPad?
Asked on 08/02/2024
1 search
Yes, you can change the modal size on an iPad. In SwiftUI, you can use the window resizability modifier to adjust the size of a window or modal to match the size of its content. This is demonstrated in the session "Work with windows in SwiftUI," where the window resizability modifier is used to ensure that the window resizes to match the size of the content.
For more details, you can refer to the session Work with windows in SwiftUI (11:32).

What’s new in AppKit
Discover the latest advances in Mac app development. Get an overview of the new features in macOS Sequoia, and how to adopt them in your app. Explore new ways to integrate your existing code with SwiftUI. Learn about the improvements made to numerous AppKit controls, like toolbars, menus, text input, and more.

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.

Tailor macOS windows with SwiftUI
Make your windows feel tailor-made for macOS. Fine-tune your app’s windows for focused purposes, ease of use, and to express functionality. Use SwiftUI to style window toolbars and backgrounds. Arrange your windows with precision, and make smart decisions about restoration and minimization.