Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created June 15, 2021 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shameemreza/7ec6c985eb9e1e40777e10abb6d2106e to your computer and use it in GitHub Desktop.
Save shameemreza/7ec6c985eb9e1e40777e10abb6d2106e to your computer and use it in GitHub Desktop.
swipeActions
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