File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Sources/SystemNotification Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -78,23 +78,18 @@ public extension SystemNotificationContext {
7878@MainActor
7979private extension SystemNotificationContext {
8080
81- func perform(
82- _ action: @escaping Action ,
83- after seconds: TimeInterval
84- ) {
81+ func perform( after seconds: TimeInterval , action: @escaping Action ) {
8582 guard seconds > 0 else { return action ( ) }
8683 DispatchQueue . main. asyncAfter ( deadline: . now( ) + seconds) {
8784 action ( )
8885 }
8986 }
9087
91- func perform( after seconds: TimeInterval , action: @escaping Action ) {
92- perform ( action, after: seconds)
93- }
94-
9588 func presentAfterDismiss< Content: View > ( _ content: Content ) {
9689 self . content = AnyView ( content)
97- perform ( setActive, after: 0.1 )
90+ perform ( after: 0.1 ) {
91+ self . setActive ( )
92+ }
9893 }
9994
10095 func setActive( ) {
You can’t perform that action at this time.
0 commit comments