Skip to content

Instantly share code, notes, and snippets.

@prafullakumar
Created April 27, 2021 11:23
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 prafullakumar/1c30bad06ee104f2ce4ed98636a5c1e0 to your computer and use it in GitHub Desktop.
Save prafullakumar/1c30bad06ee104f2ce4ed98636a5c1e0 to your computer and use it in GitHub Desktop.
extension View {
func addButtonActions(leadingButtons: [CellButtons], trailingButton: [CellButtons], onClick: @escaping (CellButtons) -> Void) -> some View {
self.modifier(SwipeContainerCell(leadingButtons: leadingButtons, trailingButton: trailingButton, onClick: onClick))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment