Skip to content

Commit

Permalink
Fix build on Xcode 14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 19, 2023
1 parent 7d19ce3 commit 2303a86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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*
Expand Down
4 changes: 2 additions & 2 deletions Sources/Pulse/Helpers/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 2303a86

Please sign in to comment.