Closed fl034 closed 5 years ago
You shouldn't need to call updateShadowPath()
because it's called in layoutSubviews()
. configureDropShadow()
doesn't need to call it.
configureDropShadow()
is a convenience function and isn't meant to be overridden. If you want a different drop shadow, define your own function configureDropCustomShadow()
and call it instead of configureDropShadow()
.
When you override a function that is implemented in an extension you get this error:
So I fixed it by removing the extensions. I also made removed the
private
modifier ofupdateShadowPath
to make it callable from subclasses.