Mobile Line Of Business

Richard Jones (MVP)

  Home  |   Contact  |   Syndication    |   Login
  202 Posts | 0 Stories | 36 Comments | 0 Trackbacks

News

Welcome to the Mobile Line Of Business Blog

Tag Cloud


Article Categories

Archives

Post Categories

About

Fed up with typing .hidden=true ?

My brain only works with .visible = false 

Is it me, or does the World need this SWIFT extension?

Just add this in a file to your SWIFT app.

 

import Foundation

import UIKit

 

extension UIView

{

    

    var visible:Bool

    {

        get

        {

             return !hidden

        }

        set

        {

            hidden = !newValue

        }

    }

}

posted on Friday, February 6, 2015 1:50 PM