Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5907] iOS - Disable shadow on webView

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2020-02-14T09:28:45.000+0000
Affected Version/sRelease 1.7.3
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSindre Sorhus
AssigneeRene Pot
Created2011-10-29T15:40:38.000+0000
Updated2020-02-14T09:28:45.000+0000

Description

Let say you need some advanced styling for your content, so you decide to use a webView. The downside with this besides the high memory use, is that the webView has shadows on the top when you drag your content down, so it's obvious that it's an webView. !skitched-20111030-013938.png! There should be a way to disable this shadow. Like an property on webView called webView.shadow = false. You can just follow [this answer](http://stackoverflow.com/questions/1074320/remove-uiwebview-shadow/3521263#3521263) on StackOverflow.

Attachments

FileDateSize
skitched-20111030-013938.png2011-10-29T15:40:38.000+000071152

Comments

  1. Marcus Olovsson 2012-05-19

    I found this in Q&A and it seems to work: http://developer.appcelerator.com/question/118810/how-to-disable-scrolling-and-shadows-in-a-webview#answer-233259 It would be nice if it was included in the SDK though.
  2. Sindre Sorhus 2012-07-08

    This is an important feature to help people to create native looking web apps. Without this you can't really use the webView without it being obvious that it's a webView... There's an easy 3-liner fix linked to from the issue. I've been waiting for this one for a long time. Hopefully someone can take a look at this.
  3. Sindre Sorhus 2013-03-01

    bump
  4. Hans Knöchel 2013-04-22

    Still present...Please just add the following code to the core (TiUIWebView.m): -(void)setHideShadow_:(id)arg { for(UIView *wview in [[[webview subviews] objectAtIndex:0] subviews]) { if([wview isKindOfClass:[UIImageView class]]) { wview.hidden = [TiUtils boolValue:arg]; } } }
  5. Andrew McElroy 2016-11-30

    can we just make this a PR already? Hans already pasted the code to do this.
  6. Rene Pot 2020-02-14

    This is not an issue anymore. Probably since iOS 7 or otherwise a PR fixed it in the meantime.

JSON Source