Coder Social home page Coder Social logo

Do Not add Subviews directly to the Visual Effect View, instead add them to the ContentView - Swift 4 ISSUE XCODE 9 about barcodescanner HOT 6 CLOSED

blitsglobal avatar blitsglobal commented on June 25, 2024
Do Not add Subviews directly to the Visual Effect View, instead add them to the ContentView - Swift 4 ISSUE XCODE 9

from barcodescanner.

Comments (6)

blitsglobal avatar blitsglobal commented on June 25, 2024

Use the following code fixes the issue.

In BarcodeScanner Pod
init() {
    let blurEffect = UIBlurEffect(style: .extraLight)
    super.init(effect: blurEffect)
    
    [label, imageView, borderView].forEach {
        //addSubview($0) -> Comment this line
        self.contentView.addSubview($0) //add this line
       }    
    status = Status(state: .scanning)
}

from barcodescanner.

Rashesh-Bosamiya avatar Rashesh-Bosamiya commented on June 25, 2024

Does this solution fix issue?
My application is live on App Store. It has this problem.

I am going to make second version live on app store.

Please let me know ASAP.

from barcodescanner.

lfarah avatar lfarah commented on June 25, 2024

I found this problem and the solution was to run a pod update BarcodeScanner to the 3.0.0 and I didn't get a crash or that warning anymore

from barcodescanner.

lfarah avatar lfarah commented on June 25, 2024

@onmyway133 can you confirm?

from barcodescanner.

onmyway133 avatar onmyway133 commented on June 25, 2024

@blitsglobal @Rashesh-Bosamiya @lfarah Hi, the fix was in https://github.com/hyperoslo/BarcodeScanner/releases/tag/2.1.2 💪 So you need to do a pod update

from barcodescanner.

lfarah avatar lfarah commented on June 25, 2024

@onmyway133 thanks for the support. You're awesome! 🎉

from barcodescanner.

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.