Skip to content

Conversation

@ebowwa
Copy link

@ebowwa ebowwa commented Jan 6, 2026

Summary

  • Fixed build error in DetectionView.swift:27
  • Changed if let videoRect = getVideoRect(...) to let videoRect = getVideoRect(...)
  • The getVideoRect() function returns CGRect (non-optional), so optional binding was incorrect

Test plan

  • Build succeeds without errors
  • App launches and runs correctly

Before

error: initializer for conditional binding must have Optional type, not 'CGRect'
** BUILD FAILED **

After

** BUILD SUCCEEDED **

🤖 Generated with Claude Code

The getVideoRect() function returns CGRect (non-optional), but the code
was using 'if let' optional binding. Changed to direct assignment since
the return value is not optional.

Fixes build error: "initializer for conditional binding must have
Optional type, not 'CGRect'"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant