Skip to content

Commit f70e317

Browse files
committed
Added IASKWebViewFullscreen option
removed dynamic setting of webView.underPageBackgroundColor because it interferes with Liquid Glass dynamic navigation bar coloring; fixed fullscreen content inset;
1 parent ae8d174 commit f70e317

File tree

5 files changed

+342
-296
lines changed

5 files changed

+342
-296
lines changed

InAppSettingsKitSampleApp/Settings.bundle/Root.inApp.plist

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,22 @@
366366
<key>IASKViewControllerSelector</key>
367367
<string>initWithFile:specifier:</string>
368368
<key>Title</key>
369+
<string>Full screen WebView</string>
370+
<key>IASKSubtitle</key>
371+
<string>use IASKWebViewFullscreen</string>
372+
<key>Type</key>
373+
<string>PSChildPaneSpecifier</string>
374+
<key>IASKWebViewFullscreen</key>
375+
<true/>
376+
</dict>
377+
<dict>
378+
<key>File</key>
379+
<string>https://github.com/futuretap/InAppSettingsKit/</string>
380+
<key>IASKViewControllerClass</key>
381+
<string>IASKAppSettingsWebViewController</string>
382+
<key>IASKViewControllerSelector</key>
383+
<string>initWithFile:specifier:</string>
384+
<key>Title</key>
369385
<string>WebView with all the above options</string>
370386
<key>Type</key>
371387
<string>PSChildPaneSpecifier</string>
@@ -375,6 +391,28 @@
375391
<true/>
376392
<key>IASKWebViewHideBottomBar</key>
377393
<true/>
394+
<key>IASKWebViewFullscreen</key>
395+
<true/>
396+
</dict>
397+
<dict>
398+
<key>File</key>
399+
<string>https://apple.com/</string>
400+
<key>IASKViewControllerClass</key>
401+
<string>IASKAppSettingsWebViewController</string>
402+
<key>IASKViewControllerSelector</key>
403+
<string>initWithFile:specifier:</string>
404+
<key>Title</key>
405+
<string>WebView with apple.com</string>
406+
<key>Type</key>
407+
<string>PSChildPaneSpecifier</string>
408+
<key>IASKWebViewShowNavigationalButtons</key>
409+
<true/>
410+
<key>IASKWebViewShowProgress</key>
411+
<true/>
412+
<key>IASKWebViewHideBottomBar</key>
413+
<true/>
414+
<key>IASKWebViewFullscreen</key>
415+
<true/>
378416
</dict>
379417
<dict>
380418
<key>Title</key>

InAppSettingsKitSampleApp/Settings.bundle/Root~iphone.inApp.plist

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,22 @@
380380
<key>IASKViewControllerSelector</key>
381381
<string>initWithFile:specifier:</string>
382382
<key>Title</key>
383+
<string>Full screen WebView</string>
384+
<key>IASKSubtitle</key>
385+
<string>use IASKWebViewFullscreen</string>
386+
<key>Type</key>
387+
<string>PSChildPaneSpecifier</string>
388+
<key>IASKWebViewFullscreen</key>
389+
<true/>
390+
</dict>
391+
<dict>
392+
<key>File</key>
393+
<string>https://github.com/futuretap/InAppSettingsKit/</string>
394+
<key>IASKViewControllerClass</key>
395+
<string>IASKAppSettingsWebViewController</string>
396+
<key>IASKViewControllerSelector</key>
397+
<string>initWithFile:specifier:</string>
398+
<key>Title</key>
383399
<string>WebView with all the above options</string>
384400
<key>Type</key>
385401
<string>PSChildPaneSpecifier</string>
@@ -389,6 +405,28 @@
389405
<true/>
390406
<key>IASKWebViewHideBottomBar</key>
391407
<true/>
408+
<key>IASKWebViewFullscreen</key>
409+
<true/>
410+
</dict>
411+
<dict>
412+
<key>File</key>
413+
<string>https://apple.com/</string>
414+
<key>IASKViewControllerClass</key>
415+
<string>IASKAppSettingsWebViewController</string>
416+
<key>IASKViewControllerSelector</key>
417+
<string>initWithFile:specifier:</string>
418+
<key>Title</key>
419+
<string>WebView with apple.com</string>
420+
<key>Type</key>
421+
<string>PSChildPaneSpecifier</string>
422+
<key>IASKWebViewShowNavigationalButtons</key>
423+
<true/>
424+
<key>IASKWebViewShowProgress</key>
425+
<true/>
426+
<key>IASKWebViewHideBottomBar</key>
427+
<true/>
428+
<key>IASKWebViewFullscreen</key>
429+
<true/>
392430
</dict>
393431
<dict>
394432
<key>Title</key>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ The Web View Controller can be defined in the Settings plist by using the follow
220220
221221
Use the following optional properties to customize the Web View Controller:
222222
223+
- `IASKWebViewFullscreen`: set to `YES` to present the web view fullscreen, with content extending below the navigation bar.
223224
- `IASKWebViewShowProgress`: set to `YES` to replace the default activity indicator on the navigation bar by a progress bar just below the navigation bar, which dynamically updates according to the [`estimatedProgress`](https://developer.apple.com/documentation/webkit/wkwebview/1415007-estimatedprogress) property of [`WKWebView`](https://developer.apple.com/documentation/webkit/wkwebview).
224225
The progress bar will be removed when page loading completes.
225226
- `IASKWebViewShowNavigationalButtons`: set to `YES` to show navigational buttons on the right side of the navigation bar. Their enabled state will update dynamically based on the navigation history of the [`WKWebView`](https://developer.apple.com/documentation/webkit/wkwebview).

0 commit comments

Comments
 (0)