Created
October 3, 2024 16:05
-
-
Save lucianoschillagi/679122b377d98d1f70ff59ea86c8696f to your computer and use it in GitHub Desktop.
draggable view
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 | |
| struct ContentView: View { | |
| let myView = "I am a draggable view!" | |
| var body: some View { | |
| Text(myView) | |
| .font(.title) | |
| .draggable(myView) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment