On GitHub, hyperoslo/BarcodeScanner has picked up 1.7k stars, Mobile, Swift. :mag_right: A simple and beautiful barcode scanner.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Use BarcodeScannerDismissalDelegate to handle "Close button" tap.
Please note that BarcodeScannerViewController doesn't dismiss itself if
it was presented initially.
When the code is captured BarcodeScannerViewController switches to the processing
mode:
While the user sees a nice loading animation you can perform some
background task, for example make a network request to fetch product info based
on the code. When the task is done you have 3 options to proceed:
Dismiss BarcodeScannerViewController and show your results.
Show an error message and switch back to the scanning mode (for example,
when there is no product found with a given barcode in your database):
func scanner(_ controller: BarcodeScannerViewController, didCaptureCode code: String, type: String) {
// Code processing
controller.resetWithError(message: "Error message")
// If message is not provided the default message will be used instead.
}
Reset the controller to the scanning mode (with or without animation):
let viewController = BarcodeScannerViewController()
// Change focus view style
viewController.cameraViewController.barCodeFocusViewType = .animated
// Show camera position button
viewController.cameraViewController.showsCameraButton = true
// Set the initial camera position
viewController.cameraViewController.initialCameraPosition = .front // Default is .back
// Set settings button text
let title = NSAttributedString(
string: "Settings",
attributes: [.font: UIFont.boldSystemFont(ofSize: 17), .foregroundColor : UIColor.white]
)
viewController.cameraViewController.settingButton.setAttributedTitle(title, for: UIControlState())
Metadata
// Add extra metadata object type
let viewController = BarcodeScannerViewController()
viewController.metadata.append(AVMetadataObject.ObjectType.qr)
Installation
BarcodeScanner is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'BarcodeScanner'
Don't forget to set a Privacy - Camera Usage Description in your Info.plist file, else the app will crash with a SIGBART.
In order to quickly try the demo project of a BarcodeScanner just run
pod try BarcodeScanner in your terminal.
BarcodeScanner is also available through Carthage.
To install just write into your Cartfile:
github "hyperoslo/BarcodeScanner"
To install BarcodeScanner manually just download and drop Sources and
Images folders in your project.
How does hyperoslo/BarcodeScanner compare to other Mobile projects?
hyperoslo/BarcodeScanner is tracked by TopGit in the Mobile category, with 1.7k GitHub stars and written in Swift. Browse the Mobile topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does hyperoslo/BarcodeScanner have?
hyperoslo/BarcodeScanner has 1.7k GitHub stars — refresh the page for the live number, or check github.com/hyperoslo/BarcodeScanner. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is hyperoslo/BarcodeScanner open source?
TopGit's metadata for hyperoslo/BarcodeScanner does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What else is in the Mobile space?
hyperoslo/BarcodeScanner is tracked by TopGit under the Mobile category, alongside 5 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is hyperoslo/BarcodeScanner?
hyperoslo/BarcodeScanner (hyperoslo/BarcodeScanner) is a Swift project on GitHub. From the project's own README: :mag_right: A simple and beautiful barcode scanner.
Where can I see hyperoslo/BarcodeScanner in action?
The project maintains a homepage at http://hyper.no. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about hyperoslo/BarcodeScanner?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/hyperoslo/BarcodeScanner is the definitive source.
Read full README in the tab above.
Curious whether BarcodeScanner is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about BarcodeScanner.