Comment: corrected formatting I want to know why when I click Command + click on a text box the drop down menu doesn't give me the option to “Embed in button”

I want to know why when I click Command + click on a text box the drop down menu doesn’t give me the option to “Embed in button”

HERE IS MY CODE

@State var alertIsVisible: Bool = false

var body: some View {
VStack {
        // Target row
HStack {
            Text("Put the bullseye as close as you can to:")
            Text(/*@START_MENU_TOKEN@*/"100"/*@END_MENU_TOKEN@*/)
        }

        // Slider Row
        HStack {
            Text("1")
            Slider(value: .constant(10))
            Text("100")
        }

        // Button row
Button(action: {
    print("Button pressed!")
    self.alertIsVisible = true
}) {
    Text("Hit me please!")
}
.alert(isPresented: $alertIsVisible) { () -> Alert in
    return Alert(title: Text("Hello there!"), message: Text("This is my first pop-up."), dismissButton: .default(Text("Awesome!")))
    }

        // Score row
    HStack {
            Text("Start Over")
        }
    }
}

}

struct ContentView_Previews: PreviewProvider { static var previews: some View {

    ContentView() .previewLayout(PreviewLayout.fixed(width: 896, height: 414))
}
            }

PLEASE LOOK AT THE IMAGE I HAVE UPLOADED
It’s a lot more easier to understand what i’m looking for and what I am seeing

Screen Shot 2020-01-02 at 3.37.14 PM

@blastoff Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.