Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Sources/RadiantKit/ViewExtensions/SingleWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,17 @@
}
}
}
#else
extension WindowGroup {
/// Initializes a new instance of the `WindowGroup` with a single window
/// view.
/// - Parameter _: The type of the `SingleWindowView`.
@MainActor
public init(singleOf _: Content.Type) where Content: SingleWindowView {
self.init {
Content()
}
}
}

Check warning on line 90 in Sources/RadiantKit/ViewExtensions/SingleWindowView.swift

View check run for this annotation

Codecov / codecov/patch

Sources/RadiantKit/ViewExtensions/SingleWindowView.swift#L85-L90

Added lines #L85 - L90 were not covered by tests
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/RadiantProgress/ProgressOperationProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// OTHER DEALINGS IN THE SOFTWARE.
//

#if canImport(Observation) && (os(macOS) || os(iOS))
#if canImport(Observation)

public import Foundation

Expand Down
Loading