Skip to content

Instantly share code, notes, and snippets.

@showcove
Created January 8, 2022 04:19
Show Gist options
  • Save showcove/b6a77c0bdf60f631e90f9defcd410797 to your computer and use it in GitHub Desktop.
Save showcove/b6a77c0bdf60f631e90f9defcd410797 to your computer and use it in GitHub Desktop.
StructVsClass - ViewController
//
// 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