回答編集履歴

2

見た目を微調整しました。

2022/12/13 04:14

投稿

uni2
uni2

スコア256

test CHANGED
@@ -22,6 +22,7 @@
22
22
  var body: some View {
23
23
  HStack{
24
24
  Text("1")
25
+ VStack{}.frame(width: 10, height: 1)//無理矢理見た目を微調整
25
26
  Menu(positionText) {
26
27
  ForEach(0 ..< position.count) { index in
27
28
  Button {
@@ -32,6 +33,7 @@
32
33
  }
33
34
  }
34
35
  .colorMultiply(.black) //追加
36
+ VStack{}.frame(width: 10, height: 1)//無理矢理見た目を微調整
35
37
  /*
36
38
  Picker(selection:$select1, label:Text("ポジション")){
37
39
  ForEach(0..<position.count,id: \.self){index in

1

不要な宣言が残ったままだったので、削除しました。

2022/12/13 04:06

投稿

uni2
uni2

スコア256

test CHANGED
@@ -9,8 +9,6 @@
9
9
 
10
10
  ```swift
11
11
  import SwiftUI
12
-
13
- var passedPinned: [String]?
14
12
 
15
13
  struct ContentView: View {
16
14