You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can give a setter a lower access level than its corresponding getter, to restrict the read-write scope of that variable, property, or subscript. You assign a lower access level by writing fileprivate(set), private(set), internal(set), or package(set) before the var or subscript introducer.
When exporting to Objective-C, the properties are marked as readonly. See the example below
From https://docs.swift.org/swift-book/documentation/the-swift-programming-language/accesscontrol#Getters-and-Setters:
When exporting to Objective-C, the properties are marked as
readonly
. See the example belowThe text was updated successfully, but these errors were encountered: