Created
June 15, 2021 06:06
-
-
Save shameemreza/7ec6c985eb9e1e40777e10abb6d2106e to your computer and use it in GitHub Desktop.
swipeActions
This file contains 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
struct SomeView: View { | |
var body: some View { | |
List { | |
ForEach(1...10, id: \.self) { item in | |
Text("Item Number \(item)") | |
.swipeActions(edge: .leading) { | |
Button { | |
//enter button actions here | |
} label: { | |
Text("Action Here") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment