Skip to content

Read barcodes in iOS


This is a sample code to read barcodes with Swift.

Reference: Swift 4でQRコードを読み取る

First of all, the info.plist contains the Add a key of Privacy - Camera Usage Description to describe the reason for using the camera. “Barcode reader reads” and so on. This phrase appears when you ask for permission to use it.


  1. Search with SearchBar in CollectionView
  2. Implementing a flowing background
  3. PageViewController & PageControl
  4. Implementing CustomView with Code
  5. Nested implementation of UINavigationController in UITabBarController.
  6. Implement UITabBarController.
  7. Using Color Set to manage colors in Asset Catalog