ios - App Store 的 SwiftUI 应用程序是否需要启动屏幕?
ios - Is LaunchScreen required in SwiftUI apps for the AppStore?
我注意到在 Xcode 13 中创建的新 SwiftUI iOS 应用默认不再包含 LaunchScreen。
但是,Apple 的指南仍然说(除非它是错误)LaunchScreen 是强制性的:
Apps should look great on all models of iPhone and iPad, regardless of display size or aspect ratio. With features like Xcode storyboards, Auto Layout, and SwiftUI, your app’s interface elements and layouts automatically fit the display. Test your apps with the latest devices or the simulator in Xcode 13 to make sure they’re ready to take advantage of the edge-to-edge displays by respecting safe areas, supporting adaptive layouts, and more. Find and address UI issues in your app before testing on a device to make sure your app looks great. App updates must use an Xcode storyboard to provide the app’s launch screen. In addition, new apps that run on iPhone must support all iPhone screens and new apps that run on iPad must support all iPad screens.
来源:https://developer.apple.com/ios/submit/
在我看来,Apple 不太可能故意不将 LaunchScreen 放入 Xcode 中,这实际上迫使所有开发人员开始四处乱砍,并将 LaunchScreen 手动添加到 每个 应用程序中.
SwiftUI 应用程序是否仍然需要 Launchscreen?如果是,如何正确在SwiftUI项目中添加Launchscreen故事板?
您的应用程序仍然需要 launchscreen
,因此 Apple 文档是正确的。
对于 SwiftUI 应用程序,您可以通过为您的应用程序提供的 info.plist 配置您的 launchscreen
或者您可以重新改造故事板。
有关如何通过 plist 文件配置 launchscreen
的指南,我建议您查看此 article。
我注意到在 Xcode 13 中创建的新 SwiftUI iOS 应用默认不再包含 LaunchScreen。
但是,Apple 的指南仍然说(除非它是错误)LaunchScreen 是强制性的:
Apps should look great on all models of iPhone and iPad, regardless of display size or aspect ratio. With features like Xcode storyboards, Auto Layout, and SwiftUI, your app’s interface elements and layouts automatically fit the display. Test your apps with the latest devices or the simulator in Xcode 13 to make sure they’re ready to take advantage of the edge-to-edge displays by respecting safe areas, supporting adaptive layouts, and more. Find and address UI issues in your app before testing on a device to make sure your app looks great. App updates must use an Xcode storyboard to provide the app’s launch screen. In addition, new apps that run on iPhone must support all iPhone screens and new apps that run on iPad must support all iPad screens.
来源:https://developer.apple.com/ios/submit/
在我看来,Apple 不太可能故意不将 LaunchScreen 放入 Xcode 中,这实际上迫使所有开发人员开始四处乱砍,并将 LaunchScreen 手动添加到 每个 应用程序中.
SwiftUI 应用程序是否仍然需要 Launchscreen?如果是,如何正确在SwiftUI项目中添加Launchscreen故事板?
您的应用程序仍然需要 launchscreen
,因此 Apple 文档是正确的。
对于 SwiftUI 应用程序,您可以通过为您的应用程序提供的 info.plist 配置您的 launchscreen
或者您可以重新改造故事板。
有关如何通过 plist 文件配置 launchscreen
的指南,我建议您查看此 article。