QR Code, verification code views (#2685)

This commit is contained in:
Mauro
2024-04-12 11:29:14 +02:00
committed by GitHub
parent 5c9d0975ce
commit fc1310d7ad
18 changed files with 215 additions and 21 deletions
@@ -903,7 +903,30 @@ class ApplicationMock: ApplicationProtocol {
}
//MARK: - openAppSettings
var openAppSettingsCallsCount = 0
var openAppSettingsUnderlyingCallsCount = 0
var openAppSettingsCallsCount: Int {
get {
if Thread.isMainThread {
return openAppSettingsUnderlyingCallsCount
} else {
var returnValue: Int? = nil
DispatchQueue.main.sync {
returnValue = openAppSettingsUnderlyingCallsCount
}
return returnValue!
}
}
set {
if Thread.isMainThread {
openAppSettingsUnderlyingCallsCount = newValue
} else {
DispatchQueue.main.sync {
openAppSettingsUnderlyingCallsCount = newValue
}
}
}
}
var openAppSettingsCalled: Bool {
return openAppSettingsCallsCount > 0
}