Comments (3)
It appears to be an old issue that was fixed. A regression. present+dismiss combination is an old iOS quirk where somehow animated transitions can block unrelated code. Iām afk and can (re-)fix it next month.
from ios-sdk.
hello there? i have some related issue where i can not present my view controller after qrcode scan. i try to pause the scanner and then run in Dispatchque as well but it stuck. if i use without pausing it doesnt do anything.
//MARK:- Delegate Methods Below
func scanView(_ scanView: ScanView, didDetectScannables scannables: [Scannable]) {
if let scannable = scannables.first {
DispatchQueue.main.async {
let vc = PostCommentsVC()
vc.postId = Int(String(700))
vc.modalPresentationStyle = .currentContext
vc.modalTransitionStyle = .coverVertical
self.present(vc, animated: true)
}
print("Found scannable code: (scannable.value)")
}
}
from ios-sdk.
@malikk77 Yes this issue cropped up again in some past release of the SDK
I was able to work around it by running a UIView animation block to delay the view controller presentation and then proceeding. Whatever the nature of this bug running an animation set causes the view controller presentations to then work correctly:
UIView.animate(withDuration: 0.3, animations: { self.view.alpha = 0.995 }) { _ in self.present(toPresent, animated: true, completion: null) }
Note that Iām animating the view alpha here because some property has to change for the animation to actually run
from ios-sdk.
Related Issues (20)
- Compatibility Issues HOT 1
- Swift 5 Compatibility HOT 3
- xcode 10.1 - dyld: Symbol not found: _OBJC_CLASS_$__TtCs12_SwiftObject HOT 5
- Scanning block HOT 1
- Swift 5.1 compatibility HOT 2
- Swift app crash : Thread 4: EXC_BAD_ACCESS (code=1, address=0x113f78000)
- Xcode 11.2 - Swift 5.1.2 Compatibility HOT 4
- XCFramework Authentication Failing HOT 5
- Quikkly iOS SDK uses deprecated UIWebView APIs - Apple will deny builds HOT 2
- Cannot Compile with Quikkly framework after upgrading to XCode Version 11.4 (11E146) HOT 2
- Camera distortion issue on android and difficulty in scanning
- Unable to compile project in Xcode 12 HOT 3
- QR Code size issue HOT 1
- Missing arm64 slice and full bitcode support HOT 1
- Failed to build module 'Quikkly' from its module interface HOT 1
- "Library version 3.2.0 is incompatible with blueprint version 1.7.0." HOT 2
- "Module compiled with Swift 4.0.3 cannot be imported in Swift 4.1" HOT 1
- How to invalidate the cached image of a generated Scannable's skin's imageURI? HOT 1
- Starting Performance HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-sdk.