younatics / ExpandableCell

✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 5
MIT License
772 stars 124 forks source link

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

Open DaraChanis opened 4 years ago

DaraChanis commented 4 years ago

` 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)
        }
    }
}`