skip to Main Content

Ios swift – Why doesn't UITextfield bind value when selected `My Own Password` after field is autofilled?

This is how I define actions for my password UITextFields: mainView.passwordTextField.rx.text.orEmpty.bind(to: viewModel.password).disposed(by: disposeBag) mainView.passwordTextField.rx.controlEvent([.editingChanged]) .asObservable() .subscribe { [mainView, viewModel, weak self] ale in print(">>>>>") print(viewModel.password.value) self?.updateView() }.disposed(by: disposeBag) And this is how it look like after password autofill is called…

VIEW QUESTION

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…

VIEW QUESTION

RxSwfit – dequeueReusableCell crash – Ios swift

So i am trying to add tableView to viewController programmatically. When getting to the driver i am crashing on the dequeueReusableCell after registering the cell. ViewController: extension NewProfileViewController { enum CellType { case header(viewModel: ImageWithLabelType) case accountBalanceCell case marketOpenCell case…

VIEW QUESTION

How do I combine observe two result rx sequences and subscribe with one closure arguments? – Ios swift

My sample is create call rest api two observable of result from load rx.request api from moya func dataOneObservable() -> Observable<ObJectOneClass> { return myprovider.rx.request(API.loadDataDetail()) .asObservable() .retry() .observeOn(MainScheduler.instance) .filterSuccessfulStatusAndRedirectCodes() .catchObjectError() .mapObject(ObJectOneClassResult.self) .map({ (response) -> ObJectOneClass in if ObJectOneClass.data != nil {…

VIEW QUESTION

Xcode – Could not find module 'RxSwift'

I imported BitcoinKit.swift which worked fine but get now the error: Could not find module 'RxSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator Podfile: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '15.2' target 'BTCTransaction5' do use_frameworks! pod 'BitcoinKit.swift' end System macOS Big Sur M1…

VIEW QUESTION
Back To Top
Search