Skip to content

Deprecate Application-Specific Main Entrypoint Attributes #62151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2023

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Nov 17, 2022

Issue a deprecation warning in Swift 5 and an error in Swift 6 when we encounter @UIApplicationMain and @NSApplicationMain. These attributes are unnecessary now that @main works with UIApplicationDelegate and NSApplicationDelegate. As these conformances are required when working with the corresponding attributes, we can migrate users off of them by replacing them with @main.

@CodaFi CodaFi added swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented labels Nov 17, 2022
@CodaFi
Copy link
Contributor Author

CodaFi commented Nov 17, 2022

@swift-ci test

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 5, 2022

@swift-ci smoke test

@CodaFi CodaFi added swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process and removed swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review labels Apr 6, 2023
@CodaFi
Copy link
Contributor Author

CodaFi commented Apr 6, 2023

@swift-ci test

@CodaFi
Copy link
Contributor Author

CodaFi commented Apr 7, 2023

@swift-ci test

Issue a deprecation warning in Swift 5 and an error in Swift 6 when we encounter @UIApplicationMain and @NSApplicationMain. These attributes are unnecessary now that @main works with UIApplicationDelegate and NSApplicationDelegate. As these conformances are required when working with the corresponding attributes, we can migrate users off of them by replacing them with @main.
@CodaFi
Copy link
Contributor Author

CodaFi commented Apr 9, 2023

@swift-ci smoke test

@CodaFi CodaFi merged commit 8d709c4 into swiftlang:main Apr 9, 2023
@CodaFi CodaFi deleted the initial-orders branch April 9, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants