We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Apple's documentation on the macro: https://developer.apple.com/documentation/swiftui/entry()
Rather than have to write something like this:
struct PathEnvironmentKey: EnvironmentKey { static let defaultValue: String = "/" } extension EnvironmentValues { var path: String { get { self[PathEnvironmentKey.self] } set { self[PathEnvironmentKey.self] = newValue } } }
We'd be able to simply do this instead:
extension EnvironmentValues { @Entry var path: String = "/" }
Will require learning how to create a Swift macro.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Apple's documentation on the macro: https://developer.apple.com/documentation/swiftui/entry()
Rather than have to write something like this:
We'd be able to simply do this instead:
Will require learning how to create a Swift macro.
The text was updated successfully, but these errors were encountered: