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

Please enable override func for open and close arrow image #76

Open
DaraChanis opened this issue Feb 6, 2020 · 0 comments
Open

Please enable override func for open and close arrow image #76

DaraChanis opened this issue Feb 6, 2020 · 0 comments

Comments

@DaraChanis
Copy link

` open func open() {
self.isOpen = true
self.initialExpansionAllowed = false
if highlightAnimation == .animated {
UIView.animate(withDuration: 0.1) {[weak self] in
self?.arrowImageView.layer.transform = CATransform3DMakeRotation(CGFloat(Double.pi), 1.0, 0.0, 0.0)
}
}
}

open func close() {
    self.isOpen = false
    if highlightAnimation == .animated {
        UIView.animate(withDuration: 0.1) {[weak self] in
            self?.arrowImageView.layer.transform = CATransform3DMakeRotation(CGFloat(Double.pi), 0.0, 0.0, 0.0)
        }
    }
}`
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