skiptools / skiptools/skip-web
Implement WebPage and provide compatibility with iOS 18.4's SwiftUI WebView
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 9
- Forks
- 9
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 1
Description
iOS 18.4 introduces a SwiftUI WebView component: https://developer.apple.com/documentation/webkit/webkit-for-swiftui
The good news is that the very simple configuration works out-of-the-box with SkipWeb, since they both have a WebView component that takes a URL initializer:
import SwiftUI
#if SKIP
import SkipWeb
#else
import WebKit
#endif
@available(iOS 18.4, *)
struct BrowserView : View {
#if !SKIP
@State var page = WebPage()
#endif
var body: some View {
#if SKIP
SkipWeb.WebView(url: URL(string: "https://skip.tools")!)
#else
WebKit.WebView(url: URL(string: "https://skip.tools")!)
#endif
// or simply:
WebView(url: URL(string: "https://skip.tools")!)
}
}
However, the WebPage API encompasses the functionality provided by SkipWeb's WebViewState, WebViewNavigator, and WebEngine. We might be able to create a new WebPage type that forwards the properties and functions to the right type. There might be some refactoring that will need to take place.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Apple's WebPage API and the existing SkipWeb WebViewState, WebViewNavigator, and WebEngine types named in the issue. Determine which WebPage properties and functions need compatibility forwarding and whether WebView configuration requires refactoring. Done means SkipWeb supports the relevant iOS 18.4 WebPage and WebView usage without breaking existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100