# \#wkwebview

**URL:** https://forums.swift.org/tag/wkwebview/610.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Swift-html-to-pdf 1.0](https://forums.swift.org/t/swift-html-to-pdf-1-0/82569)

<div class="topic-metadata">

**Author:** [@coenttb](https://forums.swift.org/u/coenttb)\
**Replies:** 0\
**Last updated:** [October 7, 2025, 8:07pm UTC](https://forums.swift.org/t/swift-html-to-pdf-1-0/82569 "2025-10-07T20:07:59Z")

</div>

I'm excited to share swift-html-to-pdf 1.0 – a production-ready HTML to PDF library for Swift that delivers exceptional performance without compromising safety or simplicity. What It Does Render HTML (bytes, Data, Strin…

---

## [Introducing WebUI: Declarative WKWebView for SwiftUI](https://forums.swift.org/t/introducing-webui-declarative-wkwebview-for-swiftui/72945)

<div class="topic-metadata">

**Author:** [@b1ackturtle](https://forums.swift.org/u/b1ackturtle)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 10:13am UTC](https://forums.swift.org/t/introducing-webui-declarative-wkwebview-for-swiftui/72945 "2024-07-05T10:13:49Z")

</div>

Hi Swift Community! I'm excited to introduce WebUI - a powerful library for declaratively using WKWebView in SwiftUI. WebUI is designed to align with existing SwiftUI interfaces such as ScrollView and ScrollViewReader.…

---

## [Proper Security when evaluating Javascript from within Swift code using callAsyncJavaScript](https://forums.swift.org/t/proper-security-when-evaluating-javascript-from-within-swift-code-using-callasyncjavascript/54123)

<div class="topic-metadata">

**Author:** [@jsoneaday](https://forums.swift.org/u/jsoneaday)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 7:13pm UTC](https://forums.swift.org/t/proper-security-when-evaluating-javascript-from-within-swift-code-using-callasyncjavascript/54123 "2023-07-27T19:13:30Z")

</div>

I am currently using the WKWebView to evaluate Javascript in my Swift code. This code uses the callAsyncJavaScript to evaluate Javascript. My code takes parameters from the user and then injects those parameters into the…

---

## [Set token in WKWebView swiftui](https://forums.swift.org/t/set-token-in-wkwebview-swiftui/54200)

<div class="topic-metadata">

**Author:** [@WXQRUS](https://forums.swift.org/u/WXQRUS)\
**Replies:** 3\
**Last updated:** [December 21, 2021, 1:13pm UTC](https://forums.swift.org/t/set-token-in-wkwebview-swiftui/54200 "2021-12-21T13:13:28Z")

</div>

I am sending the authorization token to the WKWebView. However, after the redirect, the server does not receive the token. How can I send a token so that it does not disappear during a redirect.

---

## [WKWebView: How to load js modules to run with evaluateJavaScript](https://forums.swift.org/t/wkwebview-how-to-load-js-modules-to-run-with-evaluatejavascript/53671)

<div class="topic-metadata">

**Author:** [@jsoneaday](https://forums.swift.org/u/jsoneaday)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 9:52pm UTC](https://forums.swift.org/t/wkwebview-how-to-load-js-modules-to-run-with-evaluatejavascript/53671 "2021-11-23T21:52:20Z")

</div>

I have a wkwebview that loads an html file. That file also has script tags for multiple scripts that get loaded as modules. I am trying to run some of the functions inside those modules using evaluateJavaScript, but I c…
