Created
January 8, 2022 04:19
-
-
Save showcove/b6a77c0bdf60f631e90f9defcd410797 to your computer and use it in GitHub Desktop.
StructVsClass - ViewController
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
// | |
// ViewController.swift | |
// ClassInStructLifeCycle | |
// | |
// Created by jay on 2022/01/08. | |
// | |
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.title = String(describing: Self.self) | |
} | |
@IBAction func pushSubVC1() { | |
let subVC1 = SubViewController1() | |
self.navigationController?.pushViewController(subVC1, animated: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment