Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
extension UIVisualEffectView {
var effectColor: UIColor? {
get {
return self.colorEffectView()?.backgroundColor
set {
self.colorEffectView()?.backgroundColor = newValue
private func colorEffectView() -> UIView? {
return self.subviews.lazy.filter { (view) -> Bool in
return NSStringFromClass(view.dynamicType) == "_UIVisualEffectFilterView"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.