Skip to content

Instantly share code, notes, and snippets.

@showcove
Created January 8, 2022 04:13
Show Gist options
  • Save showcove/bef4279bae0f01d6322b80d80df70f90 to your computer and use it in GitHub Desktop.
Save showcove/bef4279bae0f01d6322b80d80df70f90 to your computer and use it in GitHub Desktop.
StructVsClass - Model
//
// Model.swift
// ClassInStructLifeCycle
//
// Created by jay on 2022/01/08.
//
import Foundation
struct Model {
var name: String = "model"
var classProperty: ClassInStruct = ClassInStruct()
}
class ClassInStruct {
deinit {
print("byebye from :", String(describing: Self.self))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment