We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dc2eee commit d99277eCopy full SHA for d99277e
Sources/RadiantKit/ViewExtensions/SingleWindowView.swift
@@ -76,5 +76,17 @@
76
}
77
78
79
+ #else
80
+ extension WindowGroup {
81
+ /// Initializes a new instance of the `WindowGroup` with a single window
82
+ /// view.
83
+ /// - Parameter _: The type of the `SingleWindowView`.
84
+ @MainActor
85
+ public init(singleOf _: Content.Type) where Content: SingleWindowView {
86
+ self.init {
87
+ Content()
88
+ }
89
90
91
#endif
92
Sources/RadiantProgress/ProgressOperationProperties.swift
@@ -27,7 +27,7 @@
27
// OTHER DEALINGS IN THE SOFTWARE.
28
//
29
30
-#if canImport(Observation) && (os(macOS) || os(iOS))
+#if canImport(Observation)
31
32
public import Foundation
33
0 commit comments