swiftui tag

24 questions


1 answers
430 views
0
I want to change the background color of the cell.

struct ContentView:View { @State var color=false varbody:someView { List {…}.listBackground (color?.white:.black) Toggle (text, isOn:$color) }}does not change the color.I wonder if the writing meth...

1 years ago

1 answers
383 views
0
Changing the Color of Cells

List{Text (Text).listRowBackground (Color.black)}in The color does not change.

1 years ago

1 answers
537 views
0
No exact matches in call to instance method 'append'

In swiftuiWhen I try to append from another screen to another screenNo exact matches in call to instance method 'append' and Value of type 'TextEditor' has no member 'text' The alert appears.Can't I u...

2 years ago

1 answers
457 views
0
ToolbarItem bottomBar

In swiftuiIn ToolbarItemIf you want to set it to the bottom right, ToolbarItem(placement:.bottomBar)If so, It does not appear.What should I do?

2 years ago

1 answers
439 views
0
swiftui alert type 'CGFloat' has no member 'main'

In swiftuiTextEditor(text:$text).frame (width:.main.bounds.width*0.8, height:200)If so, Type 'CGFloat' has no member 'main' The alert appears.Before that, I had UISscreen.I also got an alert with UIKi...

2 years ago

1 answers
453 views
0
swiftui alert 'navigationBarLeading' is unavailable in macOS

When I try to add a bar item in swiftui, I get the following alert: 'navigationBarLeading' is unavailable in macOSI thought it was an update, but it didn't go away.Is the bar item marked differently?

2 years ago

1 answers
305 views
0
I want to use HSTack to get the width value to the image on UISscreen.

I would like to use HSTack to determine the width value on the UISscreen up to Image(test) and get the value. What should I do?struct ContentView:View {    varbody:someView {        HSTack {          ...

2 years ago

1 answers
361 views
0
I want to select SymbolRenderingMode in ForEach in SwiftUI, but I get a runtime error (Thread1: EXC_BAD_ACCESS).

.symbolRenderingMode(SymbolRenderingMode) is an option for viewing SF Symbols in SwiftUI's Image, but I want Picker and ForEach to display all options so that the UI can select them, but I implement t...

2 years ago

1 answers
414 views
0
Apple Tutorial Shows Value of Type 'Color' has no member' accessibleFontColor' Error

Apple's iOS devtutorials encountered an error in lessons displaying meeting information.Please let me know how to improve it.Creating a CardView — iOS App Dev Tutorials | Apple Developer Documentation...

2 years ago

1 answers
334 views
0
Information on how SwiftUI saves 2D arrays in Firestore.

Question detailsI would like to create a sample program that saves a two-dimensional array in Firestore and adds a one-dimensional array after saving it, but I can't deal with the following error.Coul...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.