You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
//
|
|
// PopupNotificationViewController.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon James Kim on 12/07/2019.
|
|
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class PopupNotificationViewController: UIViewController {
|
|
|
|
// MARK: Properties
|
|
|
|
var presenter: PopupNotificationModuleInterface?
|
|
|
|
// MARK: Computed Properties
|
|
|
|
// MARK: IBOutlets
|
|
@IBOutlet weak var mainView: UIView!
|
|
|
|
// MARK: VC's Life cycle
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
setup()
|
|
}
|
|
|
|
// MARK: IBActions
|
|
@IBAction func touchDontShowAgainTodayButton(_ sender: UIButton) {
|
|
let now = Date()
|
|
|
|
GMEDB
|
|
.shared
|
|
.app
|
|
.set(true, .isOpenedPopupNotification)
|
|
.set(now, .dateOfDontShowNotification)
|
|
|
|
dismiss(animated: true, completion: nil)
|
|
}
|
|
|
|
@IBAction func touchOkButton(_ sender: UIButton) {
|
|
GMEDB.shared.app.set(true, .isOpenedPopupNotification)
|
|
dismiss(animated: true, completion: nil)
|
|
}
|
|
|
|
}
|
|
|
|
// MARK: PopupNotificationViewInterface
|
|
extension PopupNotificationViewController: PopupNotificationViewInterface {
|
|
|
|
}
|
|
|
|
// MARK: Other Functions
|
|
extension PopupNotificationViewController {
|
|
private func setup() {
|
|
// all setup should be done here
|
|
}
|
|
}
|