File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
RadiantKit/ViewExtensions Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 6262 }
6363
6464 #if os(macOS) || os(iOS) || os(visionOS)
65+
6566 extension WindowGroup {
6667 /// Initializes a new instance of the `WindowGroup` with a single window
6768 /// view.
7677 }
7778 }
7879 }
79- #endif
80+ #else
81+ extension WindowGroup {
82+ /// Initializes a new instance of the `WindowGroup` with a single window
83+ /// view.
84+ /// - Parameter _: The type of the `SingleWindowView`.
85+ @MainActor
86+ public init ( singleOf _: Content . Type ) where Content : SingleWindowView {
87+ self . init {
88+ Content ( )
89+ }
90+ }
91+ }
92+ #endif
8093#endif
Original file line number Diff line number Diff line change 2727// OTHER DEALINGS IN THE SOFTWARE.
2828//
2929
30- #if canImport(Observation) && (os(macOS) || os(iOS))
30+ #if canImport(Observation)
3131
3232 public import Foundation
3333
You can’t perform that action at this time.
0 commit comments