tutorials

How and Why to Use Protocols and Delegates in Swift

In this short episode we take a closer look at why we used a protocol and delegate in part 3 of Building Instagram Stories from Scratch (which you can watch here: https://youtu.be/NbHYLNNQdhg )

This is one of the most important concepts in iOS programming, but it’s not that complicated once you see why and how to use protocols and delegates.

The code for this and all episodes can be found here on github: https://github.com/brightmediums/HowT... This project is in the folder titled "Why You Should Use a Delegate and Protocol".

Building Instagram Stories - Part 3 - And a Juggling Accident!

In this third part, we continue building Instagram Stories-like functionality from the ground up. Today, we are building a custom sticker picker as a modal view controller with a transparent, blurred background and a grid of emojis.

We will be using XCode 9, Swift 4 and iOS 11 for this tutorial. You will need to have XCode installed, so open App Store on your mac or hackintosh and start the download!

The code for this and all episodes can be found here on GitHub.

Start with the code for "Instagram Stories - Part 2 - Rotation and Resizing" if you want to follow along. Otherwise download the "After" code from "Part 3"

Building Instagram Stories - Part 2 - And Contact Juggling

In this second of many episodes we are building sticker functionality, like the kind found in Instagram Stories and Snapchat. But first, some contact juggling!

We will be using XCode 9, Swift 4 and iOS 11 for this tutorial. You will need to have XCode installed, so open App Store on your mac or hackintosh and start the download!

In this episode we will take a close look at UIPinchGestureRecognizer and UIRotationGestureRecognizer. You will learn how to make those 2 and UIPanGestureRecognizer all work together seamlessly while recreating instagram stories (and Snapchat) sticker-like functionality.

The code for this and all episodes can be found here on GitHub.

Start with the code for "Instagram Stories - Part 1 - Stickers" if you want to follow along. Otherwise download the "After" code from "Part 2"

Building Instagram Stories - Part 1 - And a Rubik's Cube Trick!

In this first part, we begin building Instagram Stories-like functionality from the ground up. We will start with a pan gesture recognizer to drag stickers around inside a story. But first, learn an easy and cool Rubik's Cube trick!

We will be using XCode 9, Swift 4 and iOS 11 for this tutorial. You will need to have XCode installed, so open App Store on your mac or hackintosh and start the download!

The code for this and all episodes can be found here on GitHub.

Beginning iOS Programming Episode 6 - How to Make a Cat Button App

In this episode you'll learn how to make a cat button app. One button, one image, infinite cats.

This project will teach you a number of crucial topics including:

  • interacting with web-services
  • working with images
  • downloading things
  • using a background thread
  • updating the UI on the main thread
  • responding to user actions
  • using activity indicators and much more!

You will need XCode 9 for this tutorial. We will be working in Swift 4 and targeting iOS 11. The code for this and all episodes can be found here on github: https://github.com/orgs/brightmediums

In the next episode we will learn how to interact with a basic web service while making a cat button app. Stay tuned and feel free to follow us on Twitter for updates: @brightmediums.

Beginning iOS Programming Episode 5 - Building a Multi-Page Form

In this tutorial you'll learn how to build a multi-page form. This project will teach you how to handle text input from users, share data between view controllers and display validation errors using UIAlertController. 

You will need XCode 9 for this tutorial. We will be working in Swift 4 and targeting iOS 11. The code for this and all episodes can be found here on github: https://github.com/orgs/brightmediums

In the next episode we will learn how to interact with a basic web service while making a cat button app. Stay tuned and feel free to follow us on Twitter for updates: @brightmediums.

Beginning iOS Programming Episode 3 - MVC - Your First Data Model

In this episode you'll learn about MVC (Model View Controller) architecture. We'll continue with the Elements tableview app from episode 2, so make sure to watch it first. You'll learn:

  • The difference between models, views and controllers
  • How to create a model
  • What the "!" means on class properties
  • The difference between a class and an instance method and how to create them
  • Working with arrays using a for loop and .map
  • Using NSNumbers

You can download the code from this episode here.

In the next episode we will create 2 styles of primary navigation used in all the most popular apps. Stay tuned and feel free to follow us on Twitter for updates: @brightmediums.