ios: move hs_init to background thread (#3411)
This commit is contained in:
parent
c40bfb0f43
commit
c1d89f2c0f
@ -26,7 +26,9 @@ struct SimpleXApp: App {
|
||||
@State private var showInitializationView = false
|
||||
|
||||
init() {
|
||||
hs_init(0, nil)
|
||||
DispatchQueue.global(qos: .background).sync {
|
||||
hs_init(0, nil)
|
||||
}
|
||||
UserDefaults.standard.register(defaults: appDefaults)
|
||||
setGroupDefaults()
|
||||
registerGroupDefaults()
|
||||
|
Loading…
Reference in New Issue
Block a user