mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-03 18:57:46 +01:00
36 lines
919 B
Swift
36 lines
919 B
Swift
|
// Copyright © 2024 Mastodon gGmbH. All rights reserved.
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
extension UserDefaults {
|
||
|
|
||
|
@objc public dynamic var askBeforePostingWithoutAltText: Bool {
|
||
|
get {
|
||
|
return object(forKey: #function) as? Bool ?? true
|
||
|
}
|
||
|
set { self[#function] = newValue }
|
||
|
}
|
||
|
|
||
|
@objc public dynamic var askBeforeUnfollowingSomeone: Bool {
|
||
|
get {
|
||
|
return object(forKey: #function) as? Bool ?? true
|
||
|
}
|
||
|
set { self[#function] = newValue }
|
||
|
}
|
||
|
|
||
|
@objc public dynamic var askBeforeBoostingAPost: Bool {
|
||
|
get {
|
||
|
return object(forKey: #function) as? Bool ?? true
|
||
|
}
|
||
|
set { self[#function] = newValue }
|
||
|
}
|
||
|
|
||
|
@objc public dynamic var askBeforeDeletingAPost: Bool {
|
||
|
get {
|
||
|
return object(forKey: #function) as? Bool ?? true
|
||
|
}
|
||
|
set { self[#function] = newValue }
|
||
|
}
|
||
|
|
||
|
}
|