fix(ios): error on iOS < 13(#1843)
* fix:iOS13 scrollView.automaticallyAdjustsScrollIndicatorInsets default value YES which make the webview vertical indicator position in wrong offset * added types and doc * fix: breaking bug for props not include under iOS13 Co-authored-by: BillHsieh <xietian@meitunmama.com> Co-authored-by: xietian <xietian@innotechx.com> Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu> Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
This commit is contained in:
parent
359ef90ddc
commit
283fe124b3
|
@ -310,7 +310,9 @@ static NSDictionary* customCertificatesForHost;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 /* __IPHONE_13_0 */
|
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 /* __IPHONE_13_0 */
|
||||||
_webView.scrollView.automaticallyAdjustsScrollIndicatorInsets = _savedAutomaticallyAdjustsScrollIndicatorInsets;
|
if (@available(iOS 13.0, *)) {
|
||||||
|
_webView.scrollView.automaticallyAdjustsScrollIndicatorInsets = _savedAutomaticallyAdjustsScrollIndicatorInsets;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[self addSubview:_webView];
|
[self addSubview:_webView];
|
||||||
|
|
Loading…
Reference in New Issue