ほんを変更しました。
しばらく急いで前の簡単な部分を調べて通り過ぎるつもりです。
var num:Int {
2*5
}
print(num)
>> 10
Computedプロパティ
Click Modifier specification
Xcode15.0でbugかないか分からないですけど
既存のdragAndDrop とか clickInspecter などがかなり変更されるとか削除されました
ドット
.font(.title)
実はこれかっこの
複数の余白を指定する
.padding([.top,.leading]
scaledFitはAspectRatio()を代替できます。
.foregroundColor(.blue) // color.blueが省略されること
.fill(Color.blue) // ここでは省略できません
foregroundColor(_:content:).
It's worth noting that in Swift, there is a convention to use underscores (_) for the first parameter of a function to allow a cleaner syntax when calling the function. This is why you often see functions in SwiftUI with an underscore for the first parameter,