-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6d4a3e
commit b380b80
Showing
13 changed files
with
209 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// NoticeSheet.swift | ||
// Cosmostation | ||
// | ||
// Created by yongjoo jung on 2023/11/14. | ||
// Copyright © 2023 wannabit. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class NoticeSheet: BaseVC { | ||
|
||
@IBOutlet weak var noticeTitleLabel: UILabel! | ||
@IBOutlet weak var noticeMsgLabel: UILabel! | ||
@IBOutlet weak var subBtn: SecButton! | ||
@IBOutlet weak var okBtn: BaseButton! | ||
|
||
|
||
var noticeType: NoticeType? | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
} | ||
|
||
override func setLocalizedString() { | ||
noticeTitleLabel.text = NSLocalizedString("str_warnning", comment: "") | ||
noticeMsgLabel.text = NSLocalizedString("msg_swap_warn", comment: "") | ||
if (noticeType == .SwapInitWarn) { | ||
subBtn.setTitle(NSLocalizedString("str_do_not_show_7_days", comment: ""), for: .normal) | ||
okBtn.setTitle(NSLocalizedString("str_ok", comment: ""), for: .normal) | ||
} | ||
} | ||
|
||
@IBAction func onClickSubBtn(_ sender: UIButton) { | ||
if (noticeType == .SwapInitWarn) { | ||
BaseData.instance.setSwapWarn() | ||
dismiss(animated: true) | ||
} | ||
} | ||
|
||
@IBAction func onClickOkBtn(_ sender: UIButton) { | ||
dismiss(animated: true) | ||
} | ||
} | ||
|
||
|
||
public enum NoticeType: Int { | ||
case SwapInitWarn = 0 | ||
} |
Oops, something went wrong.