This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @IBAction func sendEmail(_ sender: Any) { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // CATransition-Example | |
| // | |
| // Created by Aman Aggarwal on 29/08/18. | |
| // Copyright © 2018 iostutorialjunction.com. All rights reserved. | |
| // | |
| import UIKit | |
| class ViewController: UIViewController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // CATransition-Example | |
| // | |
| // Created by Aman Aggarwal on 29/08/18. | |
| // Copyright © 2018 iostutorialjunction.com. All rights reserved. | |
| // | |
| import UIKit | |
| class ViewController: UIViewController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // CATransition-Example | |
| // | |
| // Created by Aman Aggarwal on 29/08/18. | |
| // Copyright © 2018 iostutorialjunction.com. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIView.animate(withDuration: 0.5) { | |
| //animate your UILable | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var lblHeader: UILabel! | |
| @IBOutlet weak var btnChangeLangauge: UIButton! | |
| @IBOutlet weak var lblCurrentLanguage: UILabel! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // Do any additional setup after loading the view, typically from a nib. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let textFromLocalizable = NSLocalizedString("change_language", comment: "") | |
| print("Localized text == \(textFromLocalizable)") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ViewController: UIViewController { | |
| @IBOutlet weak var lblHeader: UILabel! | |
| @IBOutlet weak var btnChangeLangauge: UIButton! | |
| @IBOutlet weak var lblCurrentLanguage: UILabel! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) { | |
| if keyPath == "loading" { | |
| if webView.isLoading { | |
| activityIndicator.startAnimating() | |
| activityIndicator.isHidden = false | |
| } else { | |
| activityIndicator.stopAnimating() | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.webView.addObserver(self, forKeyPath: #keyPath(WKWebView.isLoading), options: .new, context: nil) |