АА
Size: a a a
АА
A
AU
AU
AU
AU
AU
AU
AU
I
I
AU
AU
AU
AU
SB
SB
VStack(alignment: .center) {
VStack {
Image("img_1")
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: 320, height: 180)
.clipped()
.cornerRadius(12)
}
VStack {
Text("English is easy")
.font(.title)
.fontWeight(.bold)
.foregroundColor(Color.black)
.padding(.bottom)
Text("Learn English fun and\neasy and communicate with the world")
.font(.body)
.lineLimit(2)
.foregroundColor(Color.black)
.multilineTextAlignment(.center)
}
VStack {
Button(action: {
// Main().AlertSnackBar(textMessage: "ss")
}) {
Text("Click me!")
.foregroundColor(Color.black)
.padding()
.background(Color(red: 1.0, green: 0.6, blue: 0, opacity: 0.6))
.cornerRadius(12)
}.padding()
}
}
.padding()
.background(Color.white)
.cornerRadius(28)
}
F
String(format: "%.2f",
value) но если я ему подаю 100.00 он его округлит до 100 без этих знаков, а мне они нужны всегда, как быть?MF