Latest 0.1.0
Homepage https://github.com/buribae/Hidden
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Hide and show views easily in Swift. Traditional way of setting isHidden individually is not only tedious but counterintuitive.

Usage

Do this.

import Hidden

if !isDateHidden {
    show(dateLabel, contentLabel)
    hide(contentTextView)
} else {
    hide(dateLabel, contentLabel)
    show(contentTextView)
}

instead

if !isDateHidden {
    dateLabel.isHidden = false
    contentLabel.isHidden = false
    contentTextView.isHidden = true
} else {
    dateLabel.isHidden = true
    contentLabel.isHidden = true
    contentTextView.isHidden = false
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 3.0+
  • iOS 8 or later

Installation

Hidden is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Hidden"

Author

buribae, [email protected]

License

Hidden is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Hidden",
    "version": "0.1.0",
    "summary": "Hide and show views easily in Swift.",
    "description": "Hidden is an UIView extension to enable show and hide multiple views easily.",
    "homepage": "https://github.com/buribae/Hidden",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Stephen Jang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/buribae/Hidden.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Hidden/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This