Skip to content

Commit

Permalink
๐ŸŽจ :: ์ฝ”๋“œ Formatting ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
yongbeomkwak committed Jul 28, 2024
1 parent 22bfaa7 commit c2dcc91
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ public protocol PlaylistCoverOptionPopupDependency: Dependency {
var fetchPlaylistImagePriceUsecase: any FetchPlaylistImagePriceUsecase { get }
}

public final class PlaylistCoverOptionPopupComponent: Component<PlaylistCoverOptionPopupDependency>, PlaylistCoverOptionPopupFactory {
public final class PlaylistCoverOptionPopupComponent: Component<PlaylistCoverOptionPopupDependency>,
PlaylistCoverOptionPopupFactory {
public func makeView(delegate: any PlaylistCoverOptionPopupDelegate) -> UIViewController {
PlaylistCoverOptionPopupViewController(
reactor: PlaylistCoverOptionPopupReactor(fetchPlaylistImagePriceUsecase: dependency.fetchPlaylistImagePriceUsecase),
reactor: PlaylistCoverOptionPopupReactor(
fetchPlaylistImagePriceUsecase: dependency
.fetchPlaylistImagePriceUsecase
),
delegate: delegate
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ final class CheckPlaylistCoverViewController: BaseReactorViewController<CheckPla
LogManager.printDebug("โŒ:: \(Self.self) deinit")
}

init(reactor: CheckPlaylistCoverlReactor, textPopUpFactory: any TextPopUpFactory, delegate: any CheckPlaylistCoverDelegate) {
init(
reactor: CheckPlaylistCoverlReactor,
textPopUpFactory: any TextPopUpFactory,
delegate: any CheckPlaylistCoverDelegate
) {
self.delegate = delegate
self.textPopUpFactory = textPopUpFactory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,19 +637,16 @@ extension MyPlaylistDetailViewController: PlaylistCoverOptionPopupDelegate {
LogManager.analytics(
PlaylistAnalyticsLog.clickPlaylistImageButton(type: "custom")
)
guard let user = PreferenceManager.userInfo else {

guard let user = PreferenceManager.userInfo else {
return
}



if user.itemCount < cost {
showToast(text: "์Œํ‘œ์—ด๋งค๊ฐ€ ๋ถ€์กฑํ•ฉ๋‹ˆ๋‹ค.", options: [.tabBar, .songCart])
} else {
requestPhotoLibraryPermission()
}


}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ final class PlaylistCoverOptionPopupViewController: BaseReactorViewController<Pl

private let tableView: UITableView = UITableView().then {
$0.isScrollEnabled = false
$0.register(PlaylistCoverOptionTableViewCell.self, forCellReuseIdentifier: PlaylistCoverOptionTableViewCell.identifier)
$0.register(
PlaylistCoverOptionTableViewCell.self,
forCellReuseIdentifier: PlaylistCoverOptionTableViewCell.identifier
)
$0.separatorStyle = .none
$0.isHidden = true
}
Expand Down

0 comments on commit c2dcc91

Please sign in to comment.