// // Copyright (c) 2021 Related Code - https://relatedcode.com // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import UIKit //----------------------------------------------------------------------------------------------------------------------------------------------- class PasscodeView: UIViewController { @IBOutlet var labelTitle: UILabel! @IBOutlet var labelSubTitle: UILabel! @IBOutlet var imageViewCode1: UIImageView! @IBOutlet var imageViewCode2: UIImageView! @IBOutlet var imageViewCode3: UIImageView! @IBOutlet var imageViewCode4: UIImageView! @IBOutlet var imageViewCode5: UIImageView! @IBOutlet var imageViewCode6: UIImageView! //------------------------------------------------------------------------------------------------------------------------------------------- override func viewDidLoad() { super.viewDidLoad() navigationItem.titleView = UIImageView(image: UIImage(systemName: "circles.hexagongrid.fill")) navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Cancel", style: .done, target: self, action: #selector(actionCancel)) navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Done", style: .done, target: self, action: #selector(actionDone)) loadData() } // MARK: - Data methods //------------------------------------------------------------------------------------------------------------------------------------------- func loadData() { labelTitle.text = "Enter\na passcode" labelSubTitle.text = "Enter your secure pin for access your information." } // MARK: - User actions //------------------------------------------------------------------------------------------------------------------------------------------- @objc func actionCancel() { dismiss(animated: true) } //------------------------------------------------------------------------------------------------------------------------------------------- @objc func actionDone() { print(#function) } }