Created
October 30, 2020 06:36
-
-
Save lhoward/206fcde4fada7ffae556ab9301cd63c9 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
| import SwiftUI | |
| private struct ScrollableModifier: ViewModifier { | |
| func body(content: Content) -> some View { | |
| ScrollView { | |
| content | |
| } | |
| } | |
| } | |
| extension View { | |
| public func scrollable() -> some View { | |
| return self.modifier(ScrollableModifier()) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment