TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

SOLVED: What shortcut do I enter to put a VStack inside of another Stack?

Forums > SwiftUI

Hi I'm on Project 2 of 100 Days of Swift and in one of the videos Paul created a VStack but then decided to put that VStack inside of another VStack.

So at the line above the first VStack he typed "VStack" then "{" but he then highlighted all of the code for the original VStack and then it was automatically put inside of the bigger VStack.

My question is what did he press for this to happen?

1      

You can press Command and click on VStack { (The start of your existing VStack), then choose "Embed in VStack" from the menu that pops up. I'm not sure of the keyboard shortcut, but "Embed in..." would be what you are looking for there.

1      

@ro asks a familiar question.

So at the line above the first VStack he typed "VStack" then "{" but
he then highlighted all of the code for the original VStack and then
it was automatically put inside of the bigger VStack. My question is what did he press for this to happen?

Maybe this will help?

See -> Embedding Code in VStack

1      

Thanks @FlyOstrich and @Obelix

1      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.