mastodon-ios/Mastodon/Preference/HomeTimelinePreference.swift

21 lines
364 B
Swift
Raw Normal View History

2021-06-21 14:27:43 +02:00
//
// HomeTimelinePreference.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-6-21.
//
import UIKit
extension UserDefaults {
@objc dynamic var preferAsyncHomeTimeline: Bool {
get {
register(defaults: [#function: false])
return bool(forKey: #function)
}
set { self[#function] = newValue }
}
}