SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.31k stars 743 forks source link

how to set shadow? #334

Closed azureplus closed 5 years ago

azureplus commented 5 years ago
open func configureDropShadow() {
    layer.shadowColor = UIColor.black.cgColor
    layer.shadowOffset = CGSize(width: 0.0, height: 2.0)
    layer.shadowRadius = 6.0
    layer.shadowOpacity = 0.4
    layer.masksToBounds = false
    updateShadowPath()
}

/// A convenience function to turn off drop shadow
open func configureNoDropShadow() {
    layer.shadowOpacity = 0
}

private func updateShadowPath() {

}

private should change to public

wtmoose commented 5 years ago

Have you seen #318? Otherwise, why do you need access to updateShadowPath?

azureplus commented 5 years ago

@wtmoose thanks