2021-04-26 12:19:20 +02:00
|
|
|
//
|
|
|
|
// NotificationPreference.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-4-26.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
2021-07-19 11:12:45 +02:00
|
|
|
import MastodonExtension
|
2021-04-26 12:19:20 +02:00
|
|
|
|
|
|
|
extension UserDefaults {
|
|
|
|
|
|
|
|
@objc dynamic var notificationBadgeCount: Int {
|
|
|
|
get {
|
|
|
|
register(defaults: [#function: 0])
|
|
|
|
return integer(forKey: #function)
|
|
|
|
}
|
2021-04-27 10:26:59 +02:00
|
|
|
set { self[#function] = newValue }
|
2021-04-26 12:19:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|