This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4919757-your-first-ios-and-swiftui-app/lessons/20
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4919757-your-first-ios-and-swiftui-app/lessons/20
Hi Ray,
I’m really enjoying this class. I have some knowledge of Swift, but SwiftUI is a whole new ballgame!
I’ve been following the lessons in Your First iOS and SwiftUI App. But I’m having trouble with the center text (“Put the bullseye as close as you can to:”). Sometimes (but not always), the text gets cut off:
Any thoughts on why this is happening and what I can do about it?
I’ve tried placing some padding behind the text field and before the target amount like this:
var body: some View {
VStack {
Spacer()
// Target row
HStack {
Text("Put the bullseye as close as you can to:").padding(.trailing, 20)
Text("\(target)")
}
but it still happens.
Thoughts?
Thanks in advance,
Mary
@kenkelm Do you still have issues with this?