| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Created linkTextAttributes environment value. Added linkTextAttributes view modifier. Set the linkTextAttributes in iOS, macOS, and tvOS based on the context environment.
| Back | FazBrowse Home | New Git URL |
Description
A Pull Request to implement a solution for issue #21.
Created linkTextAttributes environment value. Added linkTextAttributes view modifier. Set the linkTextAttributes in iOS, macOS, and tvOS based on the context environment.
Implementation
Added linkTextAttributes as an internal property of EnvironmentValues. This limits access to linkTextAttributes to just the AttributedText package. In AttributedTextImpl.updateUIView, if linkTextAttributes has been set, then set the underlying TextView's linkTextAttributes property.
Examples
There are two ways of setting the linkTextAttributes.