Private Set on Swift Property
Swift supports public get but private set on properties:
So, Foo
is a public class with a public String
property called bar
. This property can be read, but cannot be set from the outside.
Swift supports public get but private set on properties:
So, Foo
is a public class with a public String
property called bar
. This property can be read, but cannot be set from the outside.