Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Showing #89

Open
4 tasks done
syedrazackimran opened this issue Mar 12, 2020 · 1 comment
Open
4 tasks done

Not Showing #89

syedrazackimran opened this issue Mar 12, 2020 · 1 comment

Comments

@syedrazackimran
Copy link

syedrazackimran commented Mar 12, 2020

New Issue Checklist

Issue Description

Environment

  • iOS Version: 13.3
  • Device(s): 11pro Max
    private func makeNode() {
        congifureMagneticView()
        for (_, element) in genreArray.enumerated() {
            let node = ImageNode(text: element.name, image: nil, color: Color.TextColor, radius: 40)
            node.label.fontName = FontsName.Avenir.DemiBold
            node.label.fontColor = Color.MainBackGroundColor
            node.label.fontSize = 14
            magnetic.addChild(node)
        }
    }

 private func congifureMagneticView() {
  magneticView = MagneticView()
        mageneticSubView.addSubview(magneticView)
        magneticView.fillSuperview()
        magnetic = magneticView.magnetic
        magnetic.calculateAccumulatedFrame()
        magnetic.magneticDelegate = self
    }

genreArray count 20 sets of Objects when I added to the magnetic node it's showing only 10 results mean half of the array count.

Refer screenshots

Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-12 at 15 52 51

@unibodydesignn
Copy link

Sometimes it shows, sometimes it does not when you initialize values in viewDidLoad. I initialized the view and nodes in viewDidAppear and the problem seems to gone for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants