Create a Paging Scroll View using NSLayoutAnchor and UIStackView

Josh KuehniOS, NSLayoutAnchor, Swift, UIStackView1 Comment

Today I wanna show you how to implement a Paging Scroll View programmatically using some cool AutoLayout APIs. You might be asking “Why do this programmatically?”. Truth is, you could do a mix of storyboard or completely in storyboard and get the same result.The reason is that in my next tutorial Adding a Parallax Effect to a UIScrollView using NSLayoutAnchor I … Read More

How to Guard your Secrets Using Git

Josh KuehnGitHub, iOS, SwiftLeave a Comment

Depending on how long you’ve been programming this might seem obvious, or odd. Recently, I’ve been playing with a few APIs and chose GitHub for version control. The problem is on GitHub (because I don’t pay) the code I push is public so how do I keep those API keys secret? The Swift community has a few answers to this … Read More

Getting Started with NSLayoutAnchor (Swift 4.0)

Josh KuehniOS, NSLayoutAnchor, Swift2 Comments

Displaying views correctly on the screen can be one of the most frustrating parts of building apps. With the addition of more screen sizes, it’s not getting any easier. Thankfully, Apple is also offering us more ways to work with auto layout. Here I’m gonna take an introductory look at the an API introduced in iOS 9, NSLayoutAnchor. I’ll show … Read More

Animating NSLayoutAnchor Constraints and the Pitfalls Involved

Josh KuehniOS, Learning, NSLayoutAnchor, Swift1 Comment

Correctly laying out an iPhone application sometimes feels like the 20% of a project that takes 80% of your effort/time. That’s why when Apple hit us with NSLayoutAnchor in iOS 9 I jumped on the opportunity to make life easier. If you haven’t spent time using NSLayoutAnchor check out my Getting Started with NSLayoutAnchor (Swift 3.1) article real quick and … Read More

Ternary Conditional Operator

Josh KuehnIndie, iOS, Learning, SwiftLeave a Comment

Getting rid of if-else statements is what the ternary operator was made for. Once you learn about it you’ll be tempted to refactor all your code. But where would you look to refactor? I’m gonna take you through a quick example of what that looks like. Here’s a bit of ugly code that could be improved A LOT! We’re generating … Read More

Getting Started with NSLayoutAnchor

Josh KuehniOS, Learning, Swift1 Comment

One of the most challenge parts of creating any app is figuring out how you’re gonna lay out the views on a screen. With the addition of more screen sizes it’s not getting any easier but thankfully apple is also offering us more ways to work with auto layout. Here I’m gonna take an introductory look at the new API … Read More

What are Classes, Structs, and Enumerations?

Josh KuehnIndie, iOS, SwiftLeave a Comment

The aim of this post will be to broadly cover topic of WHAT are classes, structs, and enumerations. I won’t be going into how or when to use them but simply how they fit into programming. I’ll be explaining why they’re used and what purpose they serve when creating a program.

How to Use Protocols and Optionals to Reuse TableViews

Josh KuehniOS, Learning, SwiftLeave a Comment

As a developer one of the core concepts I’ve picked up on is the importance of reusability. You should NEVER write the same line of code twice! Programming is a constant battle against complexity and that means a healthy balance between readability and fewer lines of code! Here I’ll show you how I’ve taken it a step further by reusing … Read More

The Option to Use Optionals

Josh KuehniOS, Learning, SwiftLeave a Comment

Whether you were new to programming or a veteran the introduction of Swift to the world introduced a new concept we now know as optionals. As not only a new comer to Swift but to programming as well I had no idea why optionals made my code “safe.” In this post I’ll share a few ways I’ve found optionals useful … Read More