i have problem in challenge 2, in func save:
@IBAction func actionSave() {
guard let image = imagePreview.image else {return}
PhotoWriter.save(image)
.asSingle()
.subscribe(
onSuccess: { [weak self] id in
self?.showMessage("Saved with id: \(id)")
self?.actionClear()
},
onError: { [weak self] error in
self?.showMessage("Error", description: error.localizedDescription)
}
)
.disposed(by: disposeBag)
}
i check project challenge form book RxSwift for chapter 4 and my code is the same as the code in the book, but i have problem how screenshot, help me pls