Rss Feed
  1. Property Initialisation in Swift

    Sunday, June 29, 2014

    This is a very simple post, briefing the different ways of Property Initialisation within a Class in Swift. Just a little of learning into Swift, you should have realised that every variable has to be either initialised with some value or with its type. Similar strategy holds for the Properties inside the class.

    Below are gists of various property initialisations.


    That's the basic of Class Property Initialisation in Swift. Try it out in Xcode Playground.

  2. 0 comments:

    Post a Comment