The frame(width:?) contains CGFloat, so .
can start CGFloat init, static, etc., but in this case CGFloat does not have main, so .
cannot start.
.frame (width: UISscreen.main.bounds.width*0.8, height:200)
.frame (width:.zero)
You can force yourself to do it, but it doesn't make sense.
struct ContentView:View {
@State var text: String="Hello"
varbody:someView {
TextEditor (text:$text)
.frame (width:.main.bounds.width*0.8, height:200)
}
}
extension CGFloat {
static let main —UISscreen=.main
}
365 FileNotFoundError in json: What is the difference between these two?
360 I would like to know if I can retrieve data using pandas grouping.
352 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
356 I want to change the format (date and time display) of the legend in chronological order.
© 2023 OneMinuteCode. All rights reserved.