Skip to content

Commit

Permalink
Fixes for older Xcode
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
LeoNatan committed Jul 31, 2024
1 parent 8da235c commit 10d68a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/LNPopupUI/LNPopupUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import SwiftUI
import LNSwiftUIUtils
@_exported import LNPopupController

@MainActor
@available(iOS 14.0, *)
public extension ToolbarItemPlacement {
#if swift(>=6.0)
@MainActor
#endif
static let popupBar: ToolbarItemPlacement = .bottomBar
}

Expand Down
2 changes: 2 additions & 0 deletions Sources/LNPopupUI/Private/LNPopupEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import SwiftUI
import LNPopupController

#if swift(>=6.0)
@MainActor
#endif
internal final class LNPopupEnvironmentConsumer<T> {
private let wrapped: T
private unowned var consumer: AnyObject? = nil
Expand Down

0 comments on commit 10d68a5

Please sign in to comment.