質問編集履歴

2

-NavigationView

2022/12/20 07:15

投稿

ura4
ura4

スコア14

test CHANGED
File without changes
test CHANGED
@@ -20,9 +20,8 @@
20
20
  @State var pinned = [""]
21
21
  @State var lineLimit = false
22
22
  var body: some View {
23
- NavigationView {
24
23
  ZStack{
25
- NavigationView {
24
+ NavigationLink {
26
25
  List{Section(header: Text("テキスト")){ForEach(0..<pinned.count) {index in NavigationLink(destination: SecondView(lineLimit, $lineLimit), label: {Text("セル表示内容")})
27
26
  (lineLimit ? .lineLimit(5) : .lineLimit(10))}
28
27
  }
@@ -47,4 +46,4 @@
47
46
  ### 補足情報(FW/ツールのバージョンなど)
48
47
 
49
48
  Xcodeのバージョンは14.1です。
50
-
49
+

1

Color

2022/12/20 07:09

投稿

ura4
ura4

スコア14

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,6 @@
22
22
  var body: some View {
23
23
  NavigationView {
24
24
  ZStack{
25
- Color (bcolor ? .white : .red)
26
25
  NavigationView {
27
26
  List{Section(header: Text("テキスト")){ForEach(0..<pinned.count) {index in NavigationLink(destination: SecondView(lineLimit, $lineLimit), label: {Text("セル表示内容")})
28
27
  (lineLimit ? .lineLimit(5) : .lineLimit(10))}