Ios swift – Cannot assign to property: 'self' is immutable error
private let selectedPhotos = BehaviorRelay<[PHAsset]>(value: []) private lazy var completeButton = UIBarButtonItem(title: "확인", style: .plain, target: nil, action: nil) A variable is declared. private func bind() { selectedPhotos.asObservable() .map { $0.isEmpty } .bind(to: completeButton.rx.isHidden) .disposed(by: disposeBag) } "Cannot assign to…