- やりたいことは、コマンドをasyncで非同期に呼び出せるようすること。
- バックグラウンドで処理を実行させ、キャンセルボタンで処理を中断できるようにする
- 問題として、
xcodebuild
を行ったときに処理が完了しないが - 具体的には
process.isRunning
がfalse
にならない
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Lorem").horizontalAlignment(.leading)
.background(.red.opacity(0.1))
Text("Lorem").horizontalAlignment(.center)
.background(.green.opacity(0.1))
struct to get information about a file using FileAttributeKey
import Foundation
struct FileAttributesManager {
// MARK: - Error Define
enum FileAttributesError: Error {
https://speakerdeck.com/ryunakayama/swiftuinishi-sitaxin-akitekutiyanodao-ru-nitiao-mu https://github.com/chatwork/svvs-sample
Observation
によりデータバインディングが簡潔に書ける(ように見える…。完全に互換しているかはちょっと不安)