• Sri KadimisettySri Kadimisetty, 7 years ago (edited 7 years ago )

    Its not very different really.

    Take a look at this - Connected Properties in Swift

    I started a Swift Project and opened the View controller right next to the storyboard. Then I dropped a button on the Storyboard. You probably have it till this point. Now just Ctrl-Drag from the button to an appropriate location within the Class. The place you drop it will form a property or an action depending on whether you pick Attribute or Button Action just like in Objective C. You know how in Obj-C you would likely place these connected properties in between @interface and @end. In Swift you just place them inside the class, anywhere should work, but honestly its just good practice to put them somewhere at the top. Hope that helps !! :)

    1 point