Skip to content

Commit 004eda5

Browse files
committed
Fix build error in Xcode 26
1 parent 6da5f6c commit 004eda5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Sources/SystemNotification/SystemNotificationContext.swift

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,18 @@ public extension SystemNotificationContext {
7878
@MainActor
7979
private 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() {

0 commit comments

Comments
 (0)