We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey, nice view, but in Swift the kBAFluidViewCMMotionUpdate doesn't work. Can you help me?
private func addFluidIndicator() { if self.motionManager.deviceMotionAvailable { self.motionManager.deviceMotionUpdateInterval = 0.3 self.motionManager.startDeviceMotionUpdatesToQueue(NSOperationQueue.mainQueue(), withHandler: { (deviceManager, error) -> Void in guard let deviceManager = deviceManager else { return } let nc = NSNotificationCenter.defaultCenter() let userInfo = NSDictionary(object: deviceManager, forKey: "data") nc.postNotificationName(kBAFluidViewCMMotionUpdate, object: self, userInfo: userInfo as [NSObject : AnyObject]) }) } let fluidView = BAFluidView(frame: UIScreen.mainScreen().bounds, startElevation: 0.5) fluidView.fillColor = UIColor.blueColor() fluidView.strokeColor = UIColor.whiteColor() fluidView.keepStationary() fluidView.startAnimation() fluidView.startTiltAnimation() self.view.addSubview(fluidView) }
The text was updated successfully, but these errors were encountered:
It's a timing problem. I solve this issue.
Sorry, something went wrong.
Hey @AFcgi - I gave it a quick glance over the weekend, but couldn't figure it out. Glad you found a solution though!
antiguab
No branches or pull requests
Hey,
nice view, but in Swift the kBAFluidViewCMMotionUpdate doesn't work. Can you help me?
The text was updated successfully, but these errors were encountered: