Skip to content

Commit 1480919

Browse files
synchronize 추가
1 parent f02fdf2 commit 1480919

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

WTUserDefaults/WTUserDefaultsHelper.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ public class WTUserDefaultsHelper : WTUserDefaultsProtocol {
4343
public func set(_ value:Any, forKey:String) {
4444
userDefaults.set(value, forKey:forKey)
4545
}
46+
47+
public func synchronize() {
48+
userDefaults.synchronize()
49+
}
4650
}

WTUserDefaults/WTUserDefaultsProtocol.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ public protocol WTUserDefaultsProtocol {
1616
func getObject(forKey: String) -> Any?
1717
func getArray(forKey: String) -> [Any]?
1818
func set(_ value:Any, forKey: String)
19+
func synchronize()
1920
}

0 commit comments

Comments
 (0)