A developer utility for swift-url. It has a similar interface to the JSDOM live URL viewer, and allows easy comparisons of WebURL with the JSDom reference implementation among other things.
If the logo didn't make it clear, this isn't supposed to be a pretty App. It's a tool for WebURL developers (basically me) to exercise the API interactively. But you might find it cool to play with 🙂
Requires macOS Big Sur or newer. Also supports iOS.
Also, it has a funky render mode, which demonstrates using WebURL's UTF8View to render a URL as an attributed string.
The app contains a local copy of the JSDom live URL viewer website (in live-viewer/Resources/live-viewer/
).
-
Clone this repository
-
Clone the swift-url repository in to this one, so your folder structure looks like:
- swift-url-tools/
- live-viewer.xcworkspace
- live-viewer/
- viewer-app.xcodeproj
- Sources/
- Resources/
- swift-url/
- Sources/
- Tests/
- ...etc
- swift-url-tools/
Here's the command:
git clone https://www.github.com/karwa/swift-url
(Yes, this is a bit clunky, but you get a much better testing & editing experience in Xcode when these are just 2 source projects on disk).
- Open live-viewer.xcworkspace in XCode.
- Build and run the "live-url-viewer" target.
Note: You can also run WebURL's own test suite from this same workspace by selecting the "swift-url Package" target.