diff --git a/CHANGELOG.md b/CHANGELOG.md index e69f3e912..4a87eed02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Pulse 2.x +## Pulse 2.1.5 + +*Apt 18, 2022* + +- Fix build on Xcode 14.3 + ## Pulse 2.1.4 *Dec 18, 2022* diff --git a/Sources/Pulse/Helpers/Extensions.swift b/Sources/Pulse/Helpers/Extensions.swift index 9bf470387..8828c6115 100644 --- a/Sources/Pulse/Helpers/Extensions.swift +++ b/Sources/Pulse/Helpers/Extensions.swift @@ -120,8 +120,8 @@ enum Graphics { kCGImageSourceCreateThumbnailFromImageAlways: true, kCGImageSourceCreateThumbnailFromImageIfAbsent: true, kCGImageSourceCreateThumbnailWithTransform: true, - kCGImageSourceThumbnailMaxPixelSize: targetSize] as CFDictionary - guard let image = CGImageSourceCreateThumbnailAtIndex(source, 0, options) else { + kCGImageSourceThumbnailMaxPixelSize: targetSize] as [CFString: Any] + guard let image = CGImageSourceCreateThumbnailAtIndex(source, 0, options as CFDictionary) else { return nil } return PlatformImage(cgImage: image) diff --git a/Sources/PulseUI/Features/Inspector/NetworkInspectorSummaryView.swift b/Sources/PulseUI/Features/Inspector/NetworkInspectorSummaryView.swift index 312577c1d..666631ceb 100644 --- a/Sources/PulseUI/Features/Inspector/NetworkInspectorSummaryView.swift +++ b/Sources/PulseUI/Features/Inspector/NetworkInspectorSummaryView.swift @@ -228,11 +228,9 @@ struct NetworkInspectorSummaryView: View { NavigationLink.programmatic(isActive: $viewModel.isCurrentRequestHeadersLinkActive) { NetworkHeadersDetailsView(viewModel: viewModel.currentRequestHeaders) } - - if let responesHeaders = viewModel.responseHeaders { - NavigationLink.programmatic(isActive: $viewModel.isResponseHeadearsRawLinkActive) { - NetworkHeadersDetailsView(viewModel: responesHeaders) - } + + NavigationLink.programmatic(isActive: $viewModel.isResponseHeadearsRawLinkActive) { + NetworkHeadersDetailsView(viewModel: viewModel.responseHeaders) } } }