var variable: variable_type {
      get {
        statements
      }
      set {
        variable = newValue
      }
      }

      Swift language logoSwift Computed Variable Get and Set Declaration

      Swift Cookbook

      Shortcut: var_computed_variable_get_set

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.