-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
hi brother,
I've coded the FloatingActionButton as you coded
`import UIKit
class FloatingActionButton: UIButtonX {
override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
UIView.animate(withDuration: 0.3, animations: {
if self.transform == .identity {
self.transform = CGAffineTransform(rotationAngle: 45*(.pi/ 180))
} else {
self.transform = .identity
}
})
return super.beginTrcking(touch,with: event)
}
override func endTracking(_ touch: UITouch?, with event: UIEvent?) {
}
}`
but i got a 9 code errors, i've analysed the files which i downloaded from your github and ovserved there is one missing file which is ( UIViewXRotatable.swift ).
could you please upload this file, it might be this is the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels