Skip to content

Commit

Permalink
Preview XCode failed
Browse files Browse the repository at this point in the history
Correction of compiling failed: cannot convert value of type 'OSLogMessage' to expected dictionary key type 'AnyHashable' of Preview Xcode
  • Loading branch information
YanSte authored Jan 18, 2021
1 parent ca98997 commit 8959787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Camera-SwiftUI/View/CameraPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct CameraPreview: UIViewRepresentable {
self.focusView.layer.frame = CGRect(origin: layerPoint, size: CGSize(width: 50, height: 50))


NotificationCenter.default.post(.init(name: .init("UserDidRequestNewFocusPoint"), object: nil, userInfo: ["devicePoint": devicePoint]))
NotificationCenter.default.post(.init(name: .init("UserDidRequestNewFocusPoint"), object: nil, userInfo: ["devicePoint": devicePoint] as [AnyHashable: Any]))

UIView.animate(withDuration: 0.3, animations: {
self.focusView.layer.opacity = 1
Expand Down

0 comments on commit 8959787

Please sign in to comment.