Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@benbahrenburg
Created May 9, 2016 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benbahrenburg/b4cd7b376265b4ce7dd37013f5f21f7d to your computer and use it in GitHub Desktop.
Save benbahrenburg/b4cd7b376265b4ce7dd37013f5f21f7d to your computer and use it in GitHub Desktop.
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