Proerty Wrapper @AppStorage

@AppStorage("name") private var name = "Cecil"

こう書くと、name属性はUserDefaultsからデータを読み込む。またname属性を変更するとき、UserDefaultの値も更新する。