diff --git a/Projects/Features/ArtistFeature/Resources/Artist.storyboard b/Projects/Features/ArtistFeature/Resources/Artist.storyboard index ddb2f0446..3b918801a 100644 --- a/Projects/Features/ArtistFeature/Resources/Artist.storyboard +++ b/Projects/Features/ArtistFeature/Resources/Artist.storyboard @@ -233,15 +233,23 @@ + + + + + @@ -277,6 +285,7 @@ + diff --git a/Projects/Features/ArtistFeature/Sources/ViewControllers/ArtistDetailHeaderViewController.swift b/Projects/Features/ArtistFeature/Sources/ViewControllers/ArtistDetailHeaderViewController.swift index 77b1491f7..64fbae61c 100644 --- a/Projects/Features/ArtistFeature/Sources/ViewControllers/ArtistDetailHeaderViewController.swift +++ b/Projects/Features/ArtistFeature/Sources/ViewControllers/ArtistDetailHeaderViewController.swift @@ -9,6 +9,7 @@ import Utility class ArtistDetailHeaderViewController: UIViewController, ViewControllerFromStoryBoard { @IBOutlet weak var artistImageView: UIImageView! @IBOutlet weak var descriptionView: UIView! + @IBOutlet weak var flipButton: UIButton! /// Description Front @IBOutlet weak var descriptionFrontView: UIView! @@ -136,12 +137,7 @@ extension ArtistDetailHeaderViewController { private extension ArtistDetailHeaderViewController { func bind() { - let mergeObservable = Observable.merge( - descriptionFrontButton.rx.tap.map { _ in () }, - descriptionBackButton.rx.tap.map { _ in () } - ) - - mergeObservable + flipButton.rx.tap .bind(with: self) { owner, _ in LogManager.analytics( ArtistAnalyticsLog.clickArtistDescriptionButton(artist: owner.model?.id ?? "")