mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
15 lines
427 B
Swift
15 lines
427 B
Swift
import Foundation
|
|
import SwiftyJSON
|
|
|
|
struct CacheModel {
|
|
static var shared = CacheModel()
|
|
static let bookmarksGroup = "group.stream.yattee.app.bookmarks"
|
|
|
|
let bookmarksDefaults = UserDefaults(suiteName: Self.bookmarksGroup)
|
|
|
|
func removeAll() {
|
|
guard let bookmarksDefaults else { return }
|
|
bookmarksDefaults.dictionaryRepresentation().keys.forEach(bookmarksDefaults.removeObject(forKey:))
|
|
}
|
|
}
|