Global Variables in Swift

  1. 5 years ago

    Small research about Global Variables in Swift.

  2. niutech

    12 Jun 2014 Administrator

    Thanks for the link! However:

    Global constants and variables are always computed lazily, in a similar manner to Lazy Stored Properties. Unlike lazy stored properties, global constants and variables do not need to be marked with the @lazy attribute.

  3. Yep, I already saw it and even updated the post. But I decided to share my observations anyway.

or Sign Up to reply!