Image for post
Image for post

Head over to my blog to read the best version of this post 👍

I recently discovered the utility of the snippet feature in Xcode. Currently I’m mainly developing my apps with Swift and doing the UI programmatically. That’s a lot of boilerplate code and I am bored to always type the same short bit of code for each of my views.

What’s a snippet

For a detailed description of a snippet, you can check the NSHipster post that explains well and is still relevant.

TL;DR: A snippet is a small bit of reusable code or text.

Xcode already provide some snippets for…


Image for post
Image for post

Head over to my blog to read the best version of this post 👍

When you are developing an iOS application you will often have to fetch images from a CDN and this can take time depends on the size of the image, the server speed and the network connection of the device. During this fetch time your UI will already be rendered and you want to display a visual indicator of the image fetching progress. On iOS you have the default UIActivityIndicatorView. It works, but you can easily create a new one more personalised.

Requirements

  • Xcode
  • Knowledges in Swift
  • Apple…

Charles Fournier

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store