-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support tap to focus without a Preview View
- Loading branch information
Showing
5 changed files
with
90 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// CoordinateSystem.swift | ||
// VisionCamera | ||
// | ||
// Created by Marc Rousavy on 17.07.24. | ||
// | ||
|
||
import Foundation | ||
|
||
@frozen | ||
enum CoordinateSystem: String, JSUnionValue { | ||
case previewView = "preview-view" | ||
case camera = "camera" | ||
|
||
init(jsValue: String) throws { | ||
if let parsed = CoordinateSystem(rawValue: jsValue) { | ||
self = parsed | ||
} else { | ||
throw CameraError.parameter(.invalid(unionName: "hardwareLevel", receivedValue: jsValue)) | ||
} | ||
} | ||
|
||
var jsValue: String { | ||
return rawValue | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters