Releases: cybozu/WebUI
Releases · cybozu/WebUI
4.4.0
What's Changed
- swift-tools-version:
6.1→6.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
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
4.2.0
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
4.0.0《Final Stable Release for Xcode 16.x》
3.2.0《Deprecated》
What's Changed
- Add icon to document top by @elmetal in #73
- Build documentation without plugin by @Kyome22 in #74
- Added CONTRIBUTING.md by @Kyome22 in #75
- Renamed typealias by @Kyome22 in #76
- Added workaround for libswiftWebKit.dylib by @Kyome22 in #77
- Use swift-tools-version 6.1 by @Kyome22 in #79
- Use Xcode 16.4 by @Kyome22 in #78
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.
- Set
User Script SandboxingtoNoin the Build Settings. - Write the following script in the
Run Scriptphase 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》
What's Changed
- Improved the documentation by @Kyome22 in #63
- Fix the example so that it works correctly on macOS. by @Kyome22 in #64
- Minor fix about pdf document by @Kyome22 in #65
- Migrate to
Entrymacro by @elmetal in #67 - Improve unstable unit tests. by @Kyome22 in #66
- Excluded attachments from repository by @Kyome22 in #70
- Applied App icon to Example. by @Kyome22 in #71
- Use withTaskGroup instead of an array of Tasks. by @Kyome22 in #68
Full Changelog: 3.1.0...3.1.1
3.1.0《Deprecated》
What's New
- Added
allowsOpaqueDrawingmodifier toWebView. - Added
contentSizeandcontentOffsetproperties toWebViewProxy. - Added
contentReaderwhich 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
Full Changelog: 3.0.3...3.1.0