Sign up for our Awesome weekly Newsletter.

 

  • Hand-curated with the best of the week iOS development News, Tools, Code snippets, Techniques, Productivity hacks, Tutorials, and Videos.
  • One email keeps you in the know
  • Delivered straight to your inbox every Friday morning
  • Completely FREE

 


View previous campaigns.

 

iOS 11 Beta 3: introduces SFAuthenticationSession to seamlessly authenticate to a web service!

If you have been using third party OAuth libraries for authenticating a user against web services then this news will excite you. With iOS 11 Beta 3, Apple introduced a new class called SFAuthenticationSession to seamlessly authenticate against a Webservice without the need to launch a SafariViewController. Behind the scenes, it uses the session data from Safari browser and this same session data can be used across apps to offer single sign functionality.

Check out the article linked below to find out how to incorporate this new API to authenticate a user against a web service easily using the new API.

Source: iOS 11, Privacy and Single Sign On – The Traveled iOS Developer’s Guide – Medium

iOS 11: Stack View Custom Spacing!

When Apple introduced StackViews in iOS 9 it quickly became everyone’s favorite control because it was easy to use and also due to the fact that it required fewer constraints to get it going. But for all its power there was one piece missing which was the ability to set a variable spacing between arranged subviews. All this is changing with iOS 11 which introduces a small tweak to allow variable spacing among its arranged subviews. The only caveat is that it can only be done programmatically and not through interface builder.

Read on at this tutorial link below to learn how to implement one:

Source: Stack View Custom Spacing

Why App Preview Videos Are Vital in iOS 11!

With iOS 11, Apple is planning to introduce a slew of exciting new changes to the App Store and one big feature that stands out is auto playing app preview videos.  Video previews will become extremely vital for developers going forward given how prominently placed app video previews are in the app store and well they portray the capabilities of your app (compared to plain screenshots). Also, if your app listing doesn’t have preview videos they will stand out like a sore thumb.

Check out this excellent article that covers in depth the benefits of including app preview videos in your app listing and some great tips.

Source: Why App Preview Videos Are Vital in iOS 11 | App Launch Map

Catching Leaky View Controllers Without Instruments!

Leaking a View Controller could turn out to be a huge issue in your app due to the fact that they are pretty big! Debugging and finding a leaky view controller using Xcode instruments is one way to catch the leak but this normally happens during a release phase and needs to be repeated everytime a new release is made. Do you wish you could catch these leaks early on in the development cycle?

Now you can — Check out this fantastic library written by Arek Holko who has created an extension that you can quickly incorporate into your code and discover leaky view controllers in a snap.

Source: Catching Leaky View Controllers Without Instruments

Xcode: Asset Catalog Changes in Xcode 9!

Apple launched a new version of Xcode at WWDC 2017 and was praised by many developers for all the great enhancements made to the Editor. One of the less talked about features is the ability to use PDF Vector data at runtime so that your images can be scaled up or down without the images getting distorted. Previously with Xcode 8, vectors were usable in the asset catalogs, but Xcode would compile down the vectors into static images at a set size which made them less scalable at runtime. Check out this great article by Cary Bohon who introduces all the great new asset catalog changes added in Xcode 9.

Check out this great article by Cary Bohon who introduces all the new asset catalog changes added in Xcode 9.

Source: Asset Catalog Changes in Xcode 9

Library: Track which versions previously installed!

A great Swift library that lets you easily track if the app was installed for the first time (so that you can display a welcome screen) or is a new update (example, to update the database to support new features). It has a ton of other features that can help you a great deal with version management, be sure to check it out at the link below.

Source: GitHub – notohiro/SwiftyVersionTracker

Why Core ML will not work for your app!

If you have been lassoed into the recent buzz surrounding Machine learning and are intrigued by Apple’s Core ML Framework you should read the article linked below before you start coding your next big app. While Core ML could work perfectly for a particular app, it doesn’t mean it will fit the needs of the app you are planning on building.

Core ML has many limitations and could mean a show stopper for many. Before you venture into the deep end, read the article below:

Source: Why Core ML will not work for your app (most likely)

The Size of iPhone’s Top Apps Has Increased by 1,000% in Four Years!

The total space required by the top 10 most installed U.S. iPhone apps has grown from 164 MB in May 2013 to about 1.9 GB last month, a 12x or approximately 1,100 percent increase in just four years.

Check out the link below for a detailed report that delves deeper into which apps have grown the most.

Source: The Size of iPhone’s Top Apps Has Increased by 1,000% in Four Years

Swift 4: Ultimate Guide to JSON Parsing!

With Swift 4 came built in support for JSON parsing with a refreshingly easy to use API. There have been a number of great libraries for JSON parsing in the past but now that Swift 4 has built-in support for it, the use of 3rd party libraries has become questionable. The new JSON parsing API is super easy to adopt and also provides the customization required to encode and decode complex scenarios.

Check out this linked article below to learn more:

Source: Ultimate Guide to JSON Parsing with Swift 4 – Ben Scheirman

Success Story: Lessons I’ve Learned from Three Million Downloads!

Check out this fascinating story of an app developer who saw an opportunity in a simple problem that every college student faces — Timetables! It’s an interesting read, the gist of the story is that in order to create a hit app, you don’t always have to look for the next big thing, sometimes, the devil is in the details, and you have to have that eye for that elusive opportunity.

Source: Lessons I’ve Learned from Three Million Downloads

Tutorial: Getting Started with Vision on iOS 11!

Apple introduced Core ML the new machine learning framework at WWDC 2017 and included with it is a new vision framework providing high-performance computer vision features for tasks such as image and face detection.

Check out this starter tutorial from Jeffrey Bergier who shows you how to get started with the Vision framework and perform object detection on a live video feed.

Source: GitHub – jeffreybergier/Blog-Getting-Started-with-VisionS 11

Tutorial: Getting Started with URLSession!

The URLSession class provides an API for downloading content via HTTP by offering a rich set of delegate methods to support authentication & to give your apps the ability to perform tasks in the background. If you have been using URLConnection in the past or have been using a third party library like Alamofire, then you should take a second look at the much improved URLSession class.

Check out this excellent tutorial written by the folks at Raywenderlich to find out more about URLSession.

Source: URLSession Tutorial: Getting Started

Server Side Swift vs. The Other Guys

The battle for the best server-side framework is just getting started, and Vapor which is a server side framework implemented using pure Swift is giving the big guys a run for their money.

Vapor surprised us with how close it got to Go. The pure Swift HTTP server Vapor uses is thread based where as Go uses coroutines. Coroutines can be a lot faster but require additional libraries and setup. Its possible Vapor could adopt this type of parallelism in the future. (Read more about threads vs. coroutines in the code section).

Additionally, Swift on Linux is still beta and compiles with unoptimized toolchains. As the compiler nears production in the coming months, Swift has the possibility to dethrone Go.

Source: Server Side Swift vs. The Other Guys 

Startup: A Primer to Venture Capital Funding(VC)!

As an entrepreneur with a startup idea there is this unbridled excitement and ambition to make things happen, but with this excitement comes the big challenge — how to raise money for your startup idea.

If you are new to the concept of VC funding and have lingering questions like:

What is VC Funding?

What do VCs look for in companies?

When you should be raising money?

What preparation you need to make before you raise money?

Then this is the article you have been looking for. Read more at the link below.

Source: A Primer to Raising Venture Money