その下にボタンがあるフォームを持つビューを作成したいと考えています。フォームとボタンを含めると、ボタンは画面の下部に移動します。
これは単なるSwiftUIのバグですか? それとも私は何か間違ったことをしていますか?
//
// TestFile.swift
// searchparty
//
// Created by Me
//
import SwiftUI
struct TestFile: View {
var body: some View {
VStack {
Form{
Text("Hello, World!")
}
Button("Button") {
print("Button tapped!")
}
}
}
}
struct TestFile_Previews: PreviewProvider {
static var previews: some View {
TestFile()
}
}