-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b275116
commit 29d092f
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// OptionalModifier.swift | ||
// NiceCopy | ||
// | ||
// Created by Marlon Raskin on 2024-11-04. | ||
// | ||
|
||
import SwiftUI | ||
|
||
extension View { | ||
@ViewBuilder | ||
func modifiers<Content: View>(@ViewBuilder content: @escaping (Self) -> Content) -> some View { | ||
content(self) | ||
} | ||
} | ||
|
||
extension Scene { | ||
@SceneBuilder | ||
func modifiers<Content: Scene>(@SceneBuilder content: @escaping (Self) -> Content) -> some Scene { | ||
content(self) | ||
} | ||
} |