mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +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:))
|
|
}
|
|
}
|