LNCommonAlertView+Account.swift 456 B

123456789101112131415161718192021
  1. //
  2. // LNCommonAlertView+Settings.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/12/22.
  6. //
  7. import Foundation
  8. extension LNCommonAlertView {
  9. static func showLogoutAlert() {
  10. let panel = LNCommonAlertView()
  11. panel.titleLabel.text = .init(key: "A00013")
  12. panel.showConfirm(.init(key: "A00002")) {
  13. LNAccountManager.shared.logout()
  14. }
  15. panel.showCancel(.init(key: "A00003"))
  16. panel.popup()
  17. }
  18. }