STWebView
π STWebView β Powerful WebView Component for SwiftUI
STWebView is a lightweight, plug-and-play Swift Package that brings full-featured WebKit support into SwiftUI projects. Designed for seamless integration, it lets you render web content natively without the hassle of bridging UIKit yourself.
β Features
- π Load Any URL or HTML Content with ease
- π Navigation Control: Go back, go forward, reload
- βοΈ JSBridge Support: Communicate between Swift and JavaScript
- π± Responsive & Scalable for all devices
- π§© Easy SwiftUI Integration β Just drop it in your view hierarchy
- π οΈ Zero Configuration β No UIViewRepresentable boilerplate needed
π― Use Cases
- Embed web apps or dashboards
- Display custom HTML/CSS/JS content
- Add hybrid UI modules in a native SwiftUI app
- Load external documentation, T&Cs, or help pages
π¦ What You Get
- STWebView Swift Package
- Sample Integration Project
- Clean and extensible source code
- Markdown documentation (setup, API usage, tips)
π Installation
- Add via Swift Package Manager
- Import
STWebView
- Drop
STWebView(url: ...)
directly in your SwiftUI View
π§βπ» Code Sample
import STWebView
struct ContentView: View {
var body: some View {
STWebView(url: URL(string: "https://example.com")!)
}
}
π‘ Why STWebView?
If you've ever struggled with wrapping WKWebView
in UIViewRepresentable
, STWebView
saves you time and sanity. Itβs ready for production, easy to customize, and supports modern SwiftUI patterns.
π₯ Download Now
Start embedding beautiful, responsive web experiences into your SwiftUI apps in seconds!
Let me know if youβd like to tailor this for a specific audience (like enterprise developers, indie devs, or open-source contributors), or if you're adding Pro features, versioning, or licensing tiers.
π― Indie/Startup Developer Tone: Drop-in WebView for SwiftUI. Load web content, communicate with JavaScript, and skip the UIKit headaches. π§ Technical/Professional Tone: Swift Package that simplifies embedding WKWebView in SwiftUI. JSBridge support, navigation controls, and clean integration β no UIViewRepresentable needed.