Skip to content

9 code errors #8

@jeedme

Description

@jeedme

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions