Read-only stored properties in Swift
Forums:
class FilmList {
private(set) var count: Int
init() {
count = 10;
}
}
- Log in to post comments
class FilmList {
private(set) var count: Int
init() {
count = 10;
}
}