Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dimohamdy
Created January 15, 2019 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimohamdy/fbdd474174a68d25c45613445b06939a to your computer and use it in GitHub Desktop.
Save dimohamdy/fbdd474174a68d25c45613445b06939a to your computer and use it in GitHub Desktop.
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var label: UILabel!
@IBOutlet weak var button: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
label.isHidden = LoginConfigManager.shared.config?.showLabel ?? false
button.isHidden = LoginConfigManager.shared.config?.showButton ?? false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment