I have a question about struct
In WWDC2016, session recommend to use sturct (value type)
but if structs have 3 more inline variable words, struct must manage reference count as store large value to heap
then my question is
when struct have 3 another struct and each struct have 2 or 3 another struct or value type
I want to know how it works whether using reference Count or not in this situation
below is example of structs
struct ViewModel {
var titleModel: TitleModel
var contentModel: ContentModel
var layoutModel: LayoutModel
}
struct TitleModel {
var text: String
var width: Float
var height: Float
}
struct ContentModel {
var content: String
var width: Float
var height: Float
}
struct LayoutModel {
var constant: Float
var multiply: Float
}