Created
January 8, 2022 04:13
-
-
Save showcove/bef4279bae0f01d6322b80d80df70f90 to your computer and use it in GitHub Desktop.
StructVsClass - Model
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
// | |
// 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