INNER CODE UNIT · Swift

OctopusKitQuickStartView

InvadingOctopus/octopuskit · QuickStart/Universal/1 - OKQuickStartView.swift:17

typealias OctopusKitQuickStartView = OKQuickStartView // In case you prefer the longer prefix :)

struct OKQuickStartView: View {
    
    var body: some View {
        
        #if os(iOS)

        return OKContainerView<MyGameCoordinator, MyGameViewController>()
            .environmentObject(MyGameCoordinator())
            .edgesIgnoringSafeArea(.all)
            .statusBar(hidden: true)

        #elseif os(macOS)

        return OKContainerView<MyGameCoordinator, MyGameViewController>()
            .environmentObject(MyGameCoordinator())
            .frame(width: 375, height: 812)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…