This file contains 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
// | |
// ContentView.swift | |
// StackOverflow | |
// | |
// Created by Németh Gergely on 2020. 01. 08.. | |
// Copyright © 2020. Németh Gergely. All rights reserved. | |
// | |
import SwiftUI |
This file contains 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 | |
final class ViewController: UIViewController { | |
private lazy var textField: UITextField = { | |
let view = UITextField() | |
view.translatesAutoresizingMaskIntoConstraints = false | |
view.delegate = self | |
view.borderStyle = .roundedRect | |
view.keyboardType = .numberPad |