One of the most common animations we see nowadays is the parallax effect. You see it on a lot of websites and sprinkled here and there inside of mobile applications. It’s hard to put into words why it’s so enjoyable but like flies, we’re drawn to it. That’s why today I’ll show you how to implement it programmatically inside of … Read More
Create a Paging Scroll View using NSLayoutAnchor and UIStackView
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
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)
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
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
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
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?
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
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
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
- Page 1 of 2
- 1
- 2