Skip to content

Instantly share code, notes, and snippets.

@schadenfrd
schadenfrd / ExampleUsage.swift
Last active October 12, 2023 15:03
Easy onSwipe extension for Swift Views
import SwiftUI
// Example usage
let canDelete = true
let rowId = UUID().uuidString
HStack {
Text("Some row we want to swipe")
}.onSwipe(
isEnabled: canDelete,