Пока у меня есть:
Код: Выделить всё
struct EmptyView: View {
private let text: String
init(_ text: String) {
self.text = text
}
var body: some View {
Text(text)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
struct TestView: View {
@State private var items: [String] = (1..
Подробнее здесь: [url]https://stackoverflow.com/questions/79718522/adjust-views-in-hstack-where-one-of-the-children-has-aspectratio[/url]
Мобильная версия