This is the second part of a guide on building a Barcode and QR Code reader application with Swift 4. In the previous article we defined AVCaptureSession, passed the input source - camera device to it and defined the output using AVCaptureMetadataOutput that detects metadata type that is a barcode or a QR Code.
This article will give you a overview of how the Barcode and QR Code application is developed in Swift 4 using Apple’s built-in AVFoundation framework by example. Let’s get started!
Apple announced Swift 4 as part of Xcode 9 at WWDC 2017. Swift 4 is a major release that is intended to be completed in the fall of 2017. It brings some really nice improvements to existing Swift 3 features as well as stability. In this article we will take a look at working with REST API in Swift 4 using URLSession and JSONDecoder. The later was introduced with Swift 4.
In order to download images or any files from the Firebase storage using URLSession dataTask you will have to get the download URL using Firebase 3 SDK method downloadURLWithCompletion.
We are all excited with the release of Xcode 8 and Swift 3. But upgrading our projects most of the time turns into a headache. And Firebase did well and really was an exception not to break. But still there were some outputs in the console that are very annoying. At first you might think that these are the errors but not after a close examination.
With the release of Swift 3 many changes have come to the language. Apple has updated their core frameworks as well. For example Foundation framework has gone through great changes. Before Swift 3 we used NSURLSession and NSJSONSerialization to reach a web service like REST API, download JSON and convert it to a readable format.
This short article is a follow up to Getting started with CocoaPods - Update Ruby Version and Install CocoaPods on Mac OS X 10.11 El Capitan. In the previous article we resolved problem with Ruby version and then installed CocoaPods. Now we’ll look at using CocoaPods to add Firebase SDK to your Xcode project and start using this amazing product by Google.
No matter what kind of app you’re creating, you’re likely to use code from other developers in the form of frameworks and libraries. CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. The latest version of CocoaPods will require a newer version of Ruby. In order to update Ruby and overcome new security measures we will need to install Homebrew, a package manager for OS X.
Recently I developed a simple application that is retrieving data from a URL using NSURLSession, parses JSON and displays a list of popular movies in the CollectionView. As far as, with the release of iOS 9 and Xcode 7, Apple made testing on devices available without the need to be registered in the Apple Developer Program, I decided to run my application on my iPhone 6S.