Files
Related Code 77ec74d6d9 Initial commit
2021-04-23 09:51:10 +02:00

56 lines
2.2 KiB
Swift
Executable File

//
// 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 SecureCodeView: UIViewController {
@IBOutlet var labelTitle: UILabel!
@IBOutlet var labelSubTitle: UILabel!
@IBOutlet var textFieldSecureCode: UITextField!
@IBOutlet var labelAvailableTime: UILabel!
//-------------------------------------------------------------------------------------------------------------------------------------------
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.titleView = UIImageView(image: UIImage(systemName: "circles.hexagongrid.fill"))
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Done", style: .done, target: self, action: #selector(actionDone))
loadData()
}
// MARK: - Data methods
//-------------------------------------------------------------------------------------------------------------------------------------------
func loadData() {
labelTitle.text = "Enter secure\ncode to verify"
labelSubTitle.text = "Please enter your verification code for verify your mobile number."
textFieldSecureCode.text = "8890128"
labelAvailableTime.text = "Available in 9 seconds"
}
// MARK: - User actions
//-------------------------------------------------------------------------------------------------------------------------------------------
@objc func actionDone() {
print(#function)
}
//-------------------------------------------------------------------------------------------------------------------------------------------
@IBAction func actionResendCode(_ sender: Any) {
print(#function)
}
}