23.8 Adding a TextField to the Stack
In addition to supporting text rotation, the app will also allow custom text to be entered and displayed on the Text view. This will require the addition of a TextField view to the project. To achieve this, either directly edit the View structure or use the Library panel to add a TextField so that the structure reads as follows (note also the addition of a state property in which to store the custom text string and the change to the Text view to use this property):
struct ContentView: View {
@State private var rotation: Double = 0
@State private var text: String = "Welcome to SwiftUI"
var body: some View {
VStack {
VStack {
...