Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion BarcodeScanner/DetailsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand All @@ -63,6 +67,7 @@ class DetailsViewController: UIViewController {
return scanButton
}()

//MARK : objc function calling
@objc func displayScannerViewController() {
print("123")
let scanViewController = ScannerViewController()
Expand Down