mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
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:))
|
|
}
|
|
}
|