[ABANDONED] Mastodon iOS client.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // SettingsManager.swift // elpha-ios // // Created by Dwayne Harris on 11/16/18. // Copyright © 2018 Elpha. All rights reserved. //
import Foundation
class SettingsManager { private static let gifKey = "settings:gif" private static let refreshTimelinesKey = "settings:refreshTimelines" public static var automaticallyPlayGIFs: Bool { get { return UserDefaults.standard.bool(forKey: gifKey) } set { UserDefaults.standard.set(newValue, forKey: gifKey) } } public static var automaticallyRefreshTimelines: Bool { get { return UserDefaults.standard.bool(forKey: refreshTimelinesKey) } set { UserDefaults.standard.set(newValue, forKey: refreshTimelinesKey) } } }
|