Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updating the camera frame position when the subviews are laid out #158

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions HostApp/HostApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
97D1A8E92BA3757700FF1368 /* AWSAPIPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 97D1A8E82BA3757700FF1368 /* AWSAPIPlugin */; };
97D1A8EB2BA3757700FF1368 /* AWSCognitoAuthPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 97D1A8EA2BA3757700FF1368 /* AWSCognitoAuthPlugin */; };
97D1A8ED2BA3757700FF1368 /* Amplify in Frameworks */ = {isa = PBXBuildFile; productRef = 97D1A8EC2BA3757700FF1368 /* Amplify */; };
97D1A8EF2BA375AA00FF1368 /* amplify-ui-swift-liveness in Resources */ = {isa = PBXBuildFile; fileRef = 97D1A8EE2BA375AA00FF1368 /* amplify-ui-swift-liveness */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -308,8 +307,6 @@
Base,
);
mainGroup = 9070FF97285112B4009867D5;
packageReferences = (
);
productRefGroup = 9070FFA1285112B4009867D5 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -328,7 +325,6 @@
files = (
973619262BA378690003A590 /* awsconfiguration.json in Resources */,
9070FFAB285112B5009867D5 /* Preview Assets.xcassets in Resources */,
97D1A8EF2BA375AA00FF1368 /* amplify-ui-swift-liveness in Resources */,
9070FFA8285112B5009867D5 /* Assets.xcassets in Resources */,
973619252BA378690003A590 /* amplifyconfiguration.json in Resources */,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ final class _LivenessViewController: UIViewController {
setupAVLayer()
}

override func viewDidLayoutSubviews() {
previewLayer?.position = view.center
}

private func layoutSubviews() {
freshnessView.translatesAutoresizingMaskIntoConstraints = false

Expand Down
Loading