SwiftUI 本変更

![Screenshot 2023-12-19 at 10.25.17 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/a76b9791-94b8-7622-2ce7-70615ea56afa.png)
ほんを変更しました。
しばらく急いで前の簡単な部分を調べて通り過ぎるつもりです。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/a4493d52-65e7-f3b8-cc2d-1d0bb3843ffb.png)
```diff_swift
var num:Int {
    2*5
    }
print(num)
>> 10
```
![IMG_2448.jpeg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/130ecfd8-56a5-6552-7867-627d5741bf72.jpeg)

# Computedプロパティ

値の取得のみが
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/6a3594f0-31d8-b517-84dc-9d045080fd5e.png)

# Click Modifier specification 
![Screenshot 2023-12-17 at 12.19.29 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/fdfb4d38-85c3-69b9-0a50-7c9fdf1c65fe.png)

Xcode15.0でbugかないか分からないですけど
既存のdragAndDrop とか　clickInspecter などがかなり変更されるとか削除されました

![Screenshot 2023-12-17 at 5.27.21 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/df5ab4b6-7b67-6111-d637-7a6090b5f19e.png)

# ドット
    .font(.title) 
実はこれかっこの
複数の余白を指定する
.padding([.top,.leading]

![Screenshot 2023-12-17 at 9.01.36 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/1eb7947f-a4c0-bb72-5de8-e338ba24ebc9.png)
![Screenshot 2023-12-17 at 9.02.16 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/67aa2f5d-7a66-a783-d81c-1a2c1f9d28b0.png)

scaledFitはAspectRatio()を代替できます。
![Screenshot 2023-12-17 at 10.11.22 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/3797ddb5-89e9-ff3b-ce9d-5977846eff0f.png)
![Screenshot 2023-12-17 at 10.13.43 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/72457e01-c550-3e5c-73d5-6c9b8394364d.png)
```diff_swift
.foregroundColor(.blue) // color.blueが省略されること
.fill(Color.blue) // ここでは省略できません![Screenshot 2023-12-18 at 10.41.08 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/ec61d841-2869-8f0b-1355-875c74c42a23.png)

```
![Screenshot 2023-12-18 at 12.35.31 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/0297df0c-5350-b82f-44b1-9393f0e5c7b5.png)
![Screenshot 2023-12-18 at 12.38.41 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/35203b40-b06a-d797-b95a-0a3ff4de4ad4.png)


![Screenshot 2023-12-18 at 12.53.12 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/de149caf-26b6-c4b8-ca68-83900d0053d3.png)
![Screenshot 2023-12-18 at 12.58.45 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/87bb4c36-3fd0-f2d8-f187-8112d0cd4663.png)
![Screenshot 2023-12-18 at 9.30.50 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/3dbdcf62-7c7d-d97a-fb83-1b6f9a288050.png)
![Screenshot 2023-12-18 at 9.46.34 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/b5070b25-27bd-b841-20be-14f4d3b0ef6a.png)
![Screenshot 2023-12-18 at 10.07.49 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/a8d99bbb-d106-759d-0217-1e8bcda3e2d6.png)
![Screenshot 2023-12-18 at 10.23.06 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/f1f48b2d-53d5-3e86-2a69-6cc7f184d177.png)
![Screenshot 2023-12-18 at 10.41.08 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/fa115738-1b5d-1347-c7c0-db48176f98e8.png)
![Screenshot 2023-12-18 at 11.15.55 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/8c20e332-2866-b2a5-5927-33d9aab2f7c6.png)
![Screenshot 2023-12-18 at 11.48.41 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/d8da608f-9259-3001-488f-60dae873e1cb.png)
![Screenshot 2023-12-18 at 2.14.31 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/28174d95-c114-2be8-a888-5efa0fc335c8.png)

    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,

![Screenshot 2023-12-18 at 2.34.45 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/db9160c2-d933-19a3-e6cf-62014e8216a5.png)
![Screenshot 2023-12-18 at 3.21.33 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/ef5e26e8-8758-b40a-bdd6-9a05d9116820.png)
![Screenshot 2023-12-18 at 3.42.10 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/c3ed9335-21bb-9d0e-e2c6-1b0198983678.png)
![Screenshot 2023-12-18 at 4.21.52 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/b4ea5879-dee6-6d9d-070a-f9d76c120d62.png)
![Screenshot 2023-12-18 at 4.55.01 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/193e93a5-a4b6-debc-20a2-7189c0bb663e.png)
![Screenshot 2023-12-18 at 5.35.46 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/a40fb8ca-beab-4cb9-98a9-f4aa914469ef.png)


# SFシンボルを活用する
![Screenshot 2023-12-18 at 5.17.51 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/9d8c0fef-a5cb-8338-9efb-62dfd96505a3.png)
![Screenshot 2023-12-18 at 5.37.16 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/a791c24e-6578-a1a9-1d9a-3b2cd0dd597c.png)
![Screenshot 2023-12-18 at 5.46.37 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/f8bf69b4-baf3-6cdb-c76c-e6265e262249.png)
階層レンダリングモードはsymbolRenderingMode(.hierachical)で指定されます。


![Screenshot 2023-12-18 at 6.00.43 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/660ee52b-f77e-2df5-3d03-049c876d906e.png)
![Screenshot 2023-12-18 at 6.07.06 PM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/3e132e89-fe56-278d-72ba-d980ce3e4f96.png)

![Screenshot 2023-12-19 at 9.30.08 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/e97985a0-1281-10d1-aecc-e63dffd3507f.png)

![Screenshot 2023-12-19 at 10.00.59 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/bb24ff3d-fee8-1f25-ac85-f361c1569fc5.png)

![Screenshot 2023-12-19 at 10.07.55 AM.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3513806/fe6cbb5b-16bc-f57a-98c0-f93f86971eae.png)