Swift watchOS SwiftUI開発 入口
Watchアプリ
新規プロジェクト「iOS App with Watch App」または「Watch App」で作成。
iOS App with Watch App:iOSアプリとwatchOSアプリを開発
Watch App:watchOSのみで開発
SwiftUI入口
Interface.storybord
HostingController.swift
import WatchKit
import Foundation
import SwiftUI
class HostingController: WKHostingController<ContentView> {
override var body: ContentView {
return ContentView()
}
}
まとめ
図の流れから、ContentView.swiftを改修すれば良い事が分かる。








