| 123456789101112131415161718192021222324252627282930313233 |
- //
- // LNCommonAlertView+Relation.swift
- // Lanu
- //
- // Created by OneeChan on 2025/12/16.
- //
- import Foundation
- extension LNCommonAlertView {
- static func showUnfollowAlert(uid: String) {
- let panel = LNCommonAlertView()
- panel.titleLabel.text = .init(key: "A00026")
- panel.messageLabel.text = .init(key: "A00027")
- panel.showConfirm(.init(key: "A00022")) { }
- panel.showCancel(.init(key: "A00028")) {
- LNRelationManager.shared.operateFollow(uid: uid, follow: false, handler: nil)
- }
- panel.popup()
- }
-
- static func showBlackAlert(uid: String) {
- let panel = LNCommonAlertView()
- panel.titleLabel.text = .init(key: "A00029")
- panel.titleLabel.numberOfLines = 0
- panel.showConfirm {
- LNRelationManager.shared.blackListUser(uid: uid, black: true, handler: nil)
- }
- panel.showCancel()
- panel.popup()
- }
- }
|