From d2cb84ae1756f9ae2e5f9b77713a6c3adf07ed9a Mon Sep 17 00:00:00 2001 From: ReenaThakkar Date: Thu, 1 Oct 2020 16:42:38 +0530 Subject: [PATCH] Update DetailsViewController.swift --- BarcodeScanner/DetailsViewController.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BarcodeScanner/DetailsViewController.swift b/BarcodeScanner/DetailsViewController.swift index ed189e8..e379d14 100644 --- a/BarcodeScanner/DetailsViewController.swift +++ b/BarcodeScanner/DetailsViewController.swift @@ -10,8 +10,11 @@ import UIKit class DetailsViewController: UIViewController { - var scannedCode:String? + //MARK : Declare variable + var scannedCode:String? + + //MARK : Viewdidload method calling override func viewDidLoad() { super.viewDidLoad() @@ -42,6 +45,7 @@ class DetailsViewController: UIViewController { // Dispose of any resources that can be recreated. } + //MARK : Other function calling let codeLabel:UILabel = { let codeLabel = UILabel() codeLabel.textAlignment = .center @@ -63,6 +67,7 @@ class DetailsViewController: UIViewController { return scanButton }() + //MARK : objc function calling @objc func displayScannerViewController() { print("123") let scanViewController = ScannerViewController()