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
let mainButton = Shape( form: Circle(r: 30), fill: Color(val: 0x7C93FE) ) let imageName = "plus" let plusUIImage = UIImage(named: imageName)! let plusImage = Image( src: imageName, place: Transform.move( dx: -Double(plusUIImage.size.width) / 2, dy: -Double(plusUIImage.size.height) / 2 ) ) let badNode = [mainButton, plusImage].group() badNode.place = Transform.move(dx: viewSize.w / 2, dy: viewSize.h/2) self.node = badNode node.onTouchPressed { f in let toTransform = badNode.place.rotate(angle: M_PI / 2) let rotateAnimation = badNode.placeVar.animation(to: toTransform) rotateAnimation.play() }
The text was updated successfully, but these errors were encountered:
vhailor13
No branches or pull requests
The text was updated successfully, but these errors were encountered: