Skip to content

Releases: cybozu/WebUI

3.2.0

19 Jul 09:01
713cb57
Compare
Choose a tag to compare

What's Changed

Workaround for libswiftWebKit.dylib

In Xcode 16.4 to Xcode 26 Beta 2, there was a bug that caused a runtime crash in the iOS Simulator due to a change in the WebKit library path. You can avoid the crash by applying the following workaround.

  1. Set User Script Sandboxing to No in the Build Settings.
  2. Write the following script in the Run Script phase of Build Phases.
    if [ "$PLATFORM_DISPLAY_NAME" = "iOS Simulator" ]; then
        KEYWORD="iOS ${TARGET_DEVICE_OS_VERSION}"
        DYLD_FALLBACK_FRAMEWORK_PATH=$(xcrun simctl list devices -v | grep "$KEYWORD" | awk -F'[][]' '{print $2}')
        DYLD_FALLBACK_FRAMEWORK_PATH="${DYLD_FALLBACK_FRAMEWORK_PATH}/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift/"
        LIBRARY_FILE="libswiftWebKit.dylib"
        ln -sf "${DYLD_FALLBACK_FRAMEWORK_PATH}/${LIBRARY_FILE}" "${BUILT_PRODUCTS_DIR}/${LIBRARY_FILE}"
        echo "👉Created an alias for ${LIBRARY_FILE}"
    fi

Full Changelog: 3.1.1...3.2.0

3.1.1

29 May 01:07
519369b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.1.0...3.1.1

3.1.0

07 May 15:23
efc8e2a
Compare
Choose a tag to compare

What's New

  • Added allowsOpaqueDrawing modifier to WebView.
  • Added contentSize and contentOffset properties to WebViewProxy.
  • Added contentReader which allows you to create PDF from current WebView's snapshot.
    WebViewReader { proxy in 
        VStack {
            Text("contentSize: \(proxy.contentSize)")
            Text("contentOffset: \(proxy.contentOffset)")
    
            Button {
                Task {
                    _ = try! await proxy.contentReader.pdf()
                }
            } label: {
                Image(systemImage: "printer")
            }
    
            WebView(request: URLRequest(url: URL(string: "https://example.com")!))
                .allowsOpaqueDrawing(false)
        }
    }

What's Changed

  • Migrated to Swift Testing by @Kyome22 in #45
  • Create CODEOWNERS by @Kyome22 in #46
  • Add allowsOpaqueDrawing(_:) modifier by @uhooi in #49
  • Put canImport(UIKit) to WebViewReaderTests by @Kyome22 in #53
  • Make allowsOpaqueDrawing work on macOS. by @Kyome22 in #52
  • Make it possible to refer to contentSize via WebViewProxy. by @Kyome22 in #54
  • minor fix about logo by @Kyome22 in #60
  • Added tests for WebViewProxy property binding. by @Kyome22 in #59
  • Support generating PDF from web view's content by @elmetal in #58

New Contributors

  • @uhooi made their first contribution in #49

Full Changelog: 3.0.3...3.1.0

3.0.3

22 Jan 05:57
0112c53
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.2...3.0.3

【Deprecated】 3.0.2

16 Jan 09:21
92018cb
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.1...3.0.2

3.0.1

04 Jan 14:39
38d93f5
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.0...3.0.1

3.0.0

27 Dec 08:32
f1b1ac9
Compare
Choose a tag to compare

Breaking Change

  • Migrated to Xcode 16 & Swift 6.

What's Changed

New Contributors

Full Changelog: 2.3.0...3.0.0

2.3.0

22 Oct 01:45
9579095
Compare
Choose a tag to compare

What's Changed

  • Add loadHTMLString() method to WebViewProxy. by @Kyome22 in #25
  • Add document root by @elmetal in #26
  • Added a modifier allowsScrollViewBounces() by @Kyome22 in #24
  • Replaced url with request in the WebViewReader documentation. by @Kyome22 in #29
  • Improve USAGE to make it more useful by @elmetal in #27

New Contributors

Full Changelog: 2.2.0...2.3.0

2.2.0

25 Sep 05:49
0b60108
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.1...2.2.0

2.1.1

30 Jul 00:26
3a61507
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.1.0...2.1.1