Swift - Struct vs Class
Struct: It has value semantics and hence variable and value is unified. Each instance can have only one owner The value held by a variable can not be manipulated without changing the variable itself Efficient compared to class due to copy on write ...
Apr 29, 20211 min read46