-
Qualities of great iPad and iPhone apps on Macs with M1
It's easier than ever to offer your existing iPad and iPhone apps on Macs with M1. We'll show you how to bring your app to macOS, and explore how the system automatically bridges various features of your app to work on the Mac. We'll also provide guidance on best practices in your iPad app, combined with improvements in macOS Monterey — like Apple Pay support, improved AV handling, and shortcuts — to provide the fullest experience on Macs with M1.
Ressources
Vidéos connexes
WWDC21
- Design great actions for Shortcuts, Siri, and Suggestions
- Explore advanced project configuration in Xcode
- Focus on iPad keyboard navigation
- Meet Shortcuts for macOS
- Meet TestFlight on Mac
- Qualities of a great Mac Catalyst app
- Take your iPad apps to the next level
- What's new in Mac Catalyst
WWDC20
-
Rechercher dans cette vidéo…
-
-
7:16 - Limit the range of allowable scene sizes
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = scene as? UIWindowScene, let sizeRestrictions = windowScene.sizeRestrictions else { return } sizeRestrictions.minimumSize = CGSize(width: 640, height: 480) sizeRestrictions.maximumSize = CGSize(width: 1920, height: 1080) } -
15:03 - Automatically enable Touch Alternatives
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>defaultEnablement</key> <true/> <key>version</key> <real>1</real> <key>requiredOnboarding</key> <array> <!-- Only include applicable features! --> <string>Tap</string> <string>Arrow Swipe</string> <string>Scroll Drag</string> <string>Tilt</string> <string>Trackpad Capture</string> </array> </dict> </plist> -
17:17 - Required delegate method to enable Apple Pay support
optional func paymentAuthorizationController(_ controller: PKPaymentAuthorizationController, didRequestMerchantSessionUpdate handler: @escaping (PKPaymentRequestMerchantSessionUpdate) -> Void)
-