Working with Xcode Auto Layout in Swift and iOS Projects

Auto Layout in Xcode

Have you ever had trouble designing an application to look good in both landscape and portrait orientation? Do not despair! Auto Layout is here to the rescue. Originally Apple had only one screen size, which was developer friendly since they did not have to be terribly flexible fitting into different screen sizes. Fast forward to today, it has become quite frustrating to design an app that supports different… Read More

Playing Pokemon via SMS in Swift Using Vapor and Twilio

Screen Shot 2018-04-30 at 6.03.39 PM

Pokemon filled many childhoods with joy. For some of us as adults, server side Swift does the same. What better way to spend a fun afternoon than combining the two? Let’s walk through how to build your own version of Twitch Plays Pokemon powered by text messages using the Twilio API, Vapor and Lua scripting for the Visual Boy Advance emulator. Getting Equipped Before moving on you’ll… Read More

Constraint Animations on iOS Apps using XCode and Swift

Laptop

You have likely seen a bunch of animations if you own an Apple device, from third-party apps or Apple’s stock apps. Maybe you thought to yourself, “I wish I knew how to do that. That’s really cool but it looks so complicated!” Well if that describes you, follow along with me through this tutorial to discover that creating animations in iOS is not as hard as… Read More

Making phone calls in Swift with Twilio

Screen Shot 2018-03-29 at 5.10.30 PM

Programmatically making phone calls is awesome, but doing so from an iOS app can be dangerous because it requires you to store your Twilio credentials in the app. With Swift’s ability to run on the server, you can avoid the risks of using Twilio client-side! Let’s learn how to make phone calls with Twilio from our server using Swift. If you just want to skip right to… Read More

Dive into ARKit on iOS with Swift and Twilio Programmable Video

Apple's ARKit logo

Augmented reality has is showing up everywhere these days. Apple’s release of ARKit in iOS 11 and Google’s ARCore APIs are guaranteed to accelerate this trend by making augmented reality development accessible to even more developers and users.   We’re especially excited about the combination of augmented reality and real-time communications. In this post we’ll dive into a simple example on how to combine Programmable Video… Read More

How to Make HTTP Requests in Swift 3

How To Make HTTP Requests In Swift 3

Making HTTP requests is core functionality for modern languages and one of the first things many developers learn when acclimating to new environments. When it comes to Swift there are a fair amount of solutions to this problem both built into the language and by the community. Let’s take a look at some of the most popular ones. We’ll be using NASA’s Astronomy Picture of the Day… Read More

iOS UserNotifications in Swift

iOSUsernotificationsSwift

Local notifications provide a core functionality in many apps, and in Swift they are easy to add to whatever you’re building. With iOS10’s UserNotifications you can even display GIFs in notifications. Let’s build a quick application to display a local UserNotification containing a SEGA-related GIF and a prompt for the user to continue receiving notifications. Setting up the project Get started by grabbing this example project off of Github…. Read More

Adding Vim keybindings to Xcode with XVim

xvim

When building iOS applications, you are most likely using Xcode. While Xcode is awesome, I miss the thrill of modal text editing I get when using my favorite text editor: Vim. Although Vim is available on OSX by default, it’s difficult to use for iOS development. Using XVim, it’s possible to get the best of both worlds by adding Vim keybindings and functionality to Xcode. Preparing… Read More