Created
December 8, 2022 15:17
-
-
Save IntegerOverlord/bb6412427422c98f88abde246c360fd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension View { | |
/// Useful for applying modifiers that are limited to certain iOS versions | |
func modify<Content>(@ViewBuilder _ transform: (Self) -> Content) -> Content { | |
transform(self) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment