iPhone client for network-computer: see and drive a remote Linux/Mac desktop over WebRTC, phone as trackpad and keyboard, desktop on a TV via AirPlay.

0 downloads

network-computer-ios/Sources/Views/RootViewController.swift
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/network-computer-ios.git
HTTPS
https://gitstable.com/git/askrobots/network-computer-ios.git
SSH
ssh://git@gitstable.com:2222/askrobots/network-computer-ios.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Dan Quellhorst First cut of the iPhone client cc1f67f 2 months ago History
RootViewController.swift · 571 bytes · 21 lines
1import UIKit
2import SwiftUI
3
4/// UIKit root so the scene delegates stay simple; everything visible is SwiftUI.
5final class RootViewController: UIHostingController<ContentView> {
6 init() { super.init(rootView: ContentView()) }
7 required init?(coder: NSCoder) { fatalError() }
8 override var prefersHomeIndicatorAutoHidden: Bool { true }
9}
10
11struct ContentView: View {
12 @ObservedObject var store = SessionStore.shared
13
14 var body: some View {
15 if store.isConnected {
16 SessionView()
17 } else {
18 ConnectView()
19 }
20 }
21}