Skip to content

Releases: cybozu/WebUI

4.4.0

28 Apr 18:55
a7bdade

Choose a tag to compare

What's Changed

  • swift-tools-version: 6.16.2
  • Split test plan into separate unit test and UI test plans. by @Kyome22 in #95
  • bump checkout and deploy pages action by @elmetal in #96
  • Updated Xcode, Swift, macOS Runner Image by @Kyome22 in #97
  • Modified workflows & Removed testplan by @Kyome22 in #98

Full Changelog: 4.3.0...4.4.0

4.3.0

30 Mar 03:07
ccb3e63

Choose a tag to compare

What's Changed

  • Use ubuntu-slim for deploy document by @Kyome22 in #87
  • Move CONTRIBUTING.md file to .github directory. by @Kyome22 in #88
  • Added contentInsetAdjustmentBehavior ViewModifier by @Kyome22 in #90
  • Use the async version of evaluateJavaScript method. by @Kyome22 in #93

Full Changelog: 4.2.1...4.3.0

4.2.1

07 Nov 08:55
d1408d9

Choose a tag to compare

What's Changed

Full Changelog: 4.2.0...4.2.1

4.2.0

07 Nov 07:46
ccb182b

Choose a tag to compare

What's Changed

  • Added pageScaleFactor(_:) by @Kyome22 in #84
    struct SampleView: View {
        @State var scale: CGFloat = 1.0
    
        var body: some View {
            VStack {
                HStack {
                    Button("Zoom In", systemImage: "plus.magnifyingglass") {
                        scale += 0.1
                    }
                    Button("Zoom Out", systemImage: "minus.magnifyingglass") {
                        scale -= 0.1
                    }
                }
                WebView(request: URLRequest(url: URL(string: "https://example.com")!))
                    .pageScaleFactor(scale)
            }
        }
    }
  • Fix CI Test by @Kyome22 in #85

Full Changelog: 4.1.0...4.2.0

4.1.0

07 Nov 07:45
3095b62

Choose a tag to compare

What's Changed

  • Updated Xcode version to 26.0 from 16.4 by @Kyome22 in #81
  • Removed unnecessary preprocessor by @Kyome22 in #82

Full Changelog: 4.0.0...4.1.0

4.0.0《Final Stable Release for Xcode 16.x》

09 Sep 06:37

Choose a tag to compare

What's Changed

Full Changelog: 3.2.0...4.0.0

3.2.0《Deprecated》

19 Jul 09:01
713cb57

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 (ref). 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

Note

If you do not need the PDF output feature, or if you do not need to verify its functionality in the simulator, please use the workaround-for-xcode-16.4-16F6 branch.

Full Changelog: 3.1.1...3.2.0

3.1.1《Deprecated》

29 May 01:07
519369b

Choose a tag to compare

What's Changed

Full Changelog: 3.1.0...3.1.1

3.1.0《Deprecated》

07 May 15:23
efc8e2a

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

Choose a tag to compare

What's Changed

Full Changelog: 3.0.2...3.0.3