Created
May 9, 2016 04:15
-
-
Save benbahrenburg/b4cd7b376265b4ce7dd37013f5f21f7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIWebView { | |
func hideOverscrollShadow(hide: Bool) { | |
for subView: UIView in self.subviews { | |
if subView.isKindOfClass(UIImageView) { | |
subView.removeFromSuperview() | |
} | |
if subView.isKindOfClass(UIScrollView) { | |
for shadowView: UIView in subView.subviews { | |
if shadowView.isKindOfClass(UIImageView) { | |
shadowView.hidden = hide | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment