mastodon-ios/Mastodon/Preference/NotificationPreference.swift

22 lines
390 B
Swift
Raw Normal View History

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