Entry Macro for Custom SwiftUI Environment Values
The Entry macro simplifies customization of the SwiftUI environment by reducing boilerplate code. It eliminates the need to create environment keys and extend the environment with getters and setters. Users can directly extend the environment using the @Entry macro, providing a default value if desired. The macro generates code that handles the internal key and value storage. It supports Transaction, ContainerValues, and FocusedValues, and is compatible with iOS 13 and later. The macro's use case is creating custom environment values, and it provides a more concise and streamlined approach compared to manual implementation.