diff --git a/Sources/NDKit/View+Cancelable.swift b/Sources/NDKit/View+Cancelable.swift index 0215f88..cd95d14 100644 --- a/Sources/NDKit/View+Cancelable.swift +++ b/Sources/NDKit/View+Cancelable.swift @@ -36,3 +36,11 @@ extension View { } } } + +public struct CancelableModifier: ViewModifier { + public func body(content: Content) -> some View { + CancelableView { + content + } + } +} diff --git a/Sources/NDKit/View+Dismissable.swift b/Sources/NDKit/View+Dismissable.swift index 0695a09..28a3210 100644 --- a/Sources/NDKit/View+Dismissable.swift +++ b/Sources/NDKit/View+Dismissable.swift @@ -46,3 +46,11 @@ extension View { } } } + +public struct DismissableModifier: ViewModifier { + public func body(content: Content) -> some View { + DismissableView { + content + } + } +} diff --git a/Sources/NDKit/View+Doable.swift b/Sources/NDKit/View+Doable.swift index 663f25b..e750084 100644 --- a/Sources/NDKit/View+Doable.swift +++ b/Sources/NDKit/View+Doable.swift @@ -8,7 +8,7 @@ import SwiftUI -public struct DobleView : View where Content : View { +public struct DoableView : View where Content : View { let content: () -> Content @Environment(\.presentationMode) var presentationMode @@ -40,3 +40,11 @@ extension View { } } } + +public struct DoableModifier: ViewModifier { + public func body(content: Content) -> some View { + DoableView { + content + } + } +}