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

9 code errors #8

Open
jeedme opened this issue Sep 4, 2018 · 0 comments
Open

9 code errors #8

jeedme opened this issue Sep 4, 2018 · 0 comments

Comments

@jeedme
Copy link

jeedme commented Sep 4, 2018

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.

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

1 participant