From 1242982a07be4eb954df01320295751d082f25b2 Mon Sep 17 00:00:00 2001 From: Kyoungmi <1mmgm.dev@gmail.com> Date: Mon, 15 Jan 2024 19:25:26 +0900 Subject: [PATCH] feat: add hide camerabutton state(#272) --- .../Home/ViewControllers/HomeViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/14th-team5-iOS/App/Sources/Presentation/Home/ViewControllers/HomeViewController.swift b/14th-team5-iOS/App/Sources/Presentation/Home/ViewControllers/HomeViewController.swift index b3a8ecba..038b8d01 100644 --- a/14th-team5-iOS/App/Sources/Presentation/Home/ViewControllers/HomeViewController.swift +++ b/14th-team5-iOS/App/Sources/Presentation/Home/ViewControllers/HomeViewController.swift @@ -255,6 +255,12 @@ extension HomeViewController { .bind(to: timerLabel.rx.textColor) .disposed(by: disposeBag) + reactor.pulse(\.$isHideCameraButton) + .observe(on: Schedulers.main) + .withUnretained(self) + .bind(onNext: { $0.0.hideCameraButton($0.1) }) + .disposed(by: disposeBag) + reactor.pulse(\.$descriptionText) .compactMap({$0}) .observe(on: Schedulers.main)