Remove @objc attributes from expiration nag view

This change should have no user impact. It just removes some unnecessary
annotations.

I also imported `Foundation`.
This commit is contained in:
Evan Hahn 2023-03-24 16:16:33 -05:00 committed by Evan Hahn
parent ca0fc64fbd
commit 4b4c908203

View File

@ -3,20 +3,18 @@
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
import UIKit
@objc
public class ExpirationNagView: ReminderView {
private static let updateLink = URL(string: "itms-apps://itunes.apple.com/app/id874139669")!
@objc
convenience init() {
self.init(mode: .nag, text: "") {
UIApplication.shared.open(ExpirationNagView.updateLink, options: [:])
}
}
@objc
func updateText() {
if appExpiry.isExpired {
text = NSLocalizedString("EXPIRATION_ERROR", comment: "Label notifying the user that the app has expired.")