Giter VIP home page Giter VIP logo

Comments (3)

janekp avatar janekp commented on May 27, 2024

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.

malikk77 avatar malikk77 commented on May 27, 2024

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.

dlallie avatar dlallie commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.