A focused macOS window for previewing local websites at iPhone viewport sizes.
The current build opens the preview as a flush, full-size iPhone canvas without extra app chrome. The toolbar is being redesigned separately. The app uses SwiftUI and the system WKWebView; it does not bundle Chromium.
- Localhost, LAN, and HTTPS URL support
- Portrait iPhone 13 through iPhone 17 viewport presets
- Full-size
402 x 874iPhone 17 canvas by default - URL entry directly beneath the viewport
- Fit-to-window scaling when the window is resized
- Blank canvas on launch
- macOS 14 or newer
- Xcode Command Line Tools with Swift 6
./script/build_and_run.shTo launch with a specific URL:
PORTBROWSER_URL=http://localhost:3000 ./script/build_and_run.shThe app bundle is generated at dist/Portview.app.