Hiding code scanner from view does not release the camera

Open
#121 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
swift
Domain
mobile-dev

Research direction

Start by reproducing the issue with the CodeScanner view hidden while its containing sheet remains open, then compare that behavior with closing the sheet. Done means the camera is released when the scanner is hidden, either through existing behavior or a clearly defined library API; the issue does not name files or tests to inspect.

Written by the indexing model from the issue text.

Description

bug

Closing the containing sheet does release the camera though.

The trick that works to re-initialise the camera on re-appearance (https://github.com/twostraws/CodeScanner/issues/120) does not help camera to disappear.

Is it something that can be done with or without library change? Maybe expose some method to disable the camera?

Dominant language
Swift
Stars
1.2k
Forks
328
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from twostraws/CodeScanner

All issues in twostraws/CodeScanner

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.