wakmusic / wakmusic-iOS

WAKTAVERSE Music iOS App
https://wakmusic.xyz/
107 stars 8 forks source link

πŸ”€ :: (#1310) μž¬μƒλͺ©λ‘, λ‚˜μ˜ ν”Œλ¦¬ swipe delete κ΅¬ν˜„ #1318

Closed yongbeomkwak closed 1 month ago

yongbeomkwak commented 1 month ago

πŸ’‘ λ°°κ²½ 및 κ°œμš”

쑰금 더 μ†μ‰¬μš΄ μ‚­μ œλ₯Ό 톡해 UXλ₯Ό ν–₯상 μ‹œν‚΅λ‹ˆλ‹€.

Resolves: #1310

πŸ“ƒ μž‘μ—…λ‚΄μš©

tableview Swipe delete μ˜΅μ…˜ μΆ”κ°€

  public func tableView(
        _ tableView: UITableView,
        trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath
    ) -> UISwipeActionsConfiguration? {
        let deleteAction = UIContextualAction(style: .destructive, title: "μ‚­μ œ") { [weak self] action, _, completion in
            guard let self else { return }
            self.reactor?.action.onNext(.removeSwippedButtonDidTap(indexPath))
        }

        deleteAction.backgroundColor = DesignSystemAsset.PrimaryColorV2.increase.color

        let configuration = UISwipeActionsConfiguration(actions: [deleteAction])
        configuration.performsFirstActionWithFullSwipe = false

        return configuration
    }

πŸ™‹β€β™‚οΈ λ¦¬λ·°λ…ΈνŠΈ

βœ… PR 체크리슀트

🎸 기타

github-actions[bot] commented 1 month ago

βœ… Successful finished SwiftLint

github-actions[bot] commented 1 month ago

βœ… μ΄μŠˆμ™€ PR의 Labels 동기화λ₯Ό μ„±κ³΅ν–ˆμ–΄μš”!