Dual Screen Airplay with Metal Gear Solid

 

Metal-Gear-Solid-Snake
Source

While thinking about technical topics to present at work during our weekly meeting; my team was faced with an unique issue involving having to display one thing on an iPhone and another on a TV via Apple TV. I figured it was a good opportunity to learn more about Airplay & screen mirroring. Naturally, I used one of my favorite video games of all-time, Metal Gear Solid, to force feed facts to my team 🙃.

Continue reading “Dual Screen Airplay with Metal Gear Solid”

Ternary Conditional Operator: The more efficient if / else statement

 

giphy.gif
Giphy

Programming, in general, is hard! With that said, Swift can be relatively easy to pick up, because of it’s accessibility, some of the language’s most powerful features get overlooked. Over the next couple of posts, I will be covering some of these features including Sets, Map, Filter & Reduce. Today, I want to cover Ternary Conditional Operator, which is basically magic.

Continue reading “Ternary Conditional Operator: The more efficient if / else statement”

How does Swift manage memory? (& what to look out for to avoid bugs)

restoring-active-memory-shutterstock
Source

According to Apple, “in most cases..memory management just works in Swift, and you do not need to think about memory management yourself.” As someone who was introduced to programming through Objective-C / Swift, I don’t think I can fully appreciate exactly what Swift is doing for us. However, I’m fully aware that there’s a lot going on in the background (code that I never have to write), that ensures your app is running as efficiently as possible.

Continue reading “How does Swift manage memory? (& what to look out for to avoid bugs)”

Auto Layout: Working with Nested Stack Views in Interface Builder

bestiphone_stuff.jpg
Source

 

As soon as I started tweaking with any UI elements in iOS, I was introduced to the programmatic vs Interface Builder argument. The debate continues, however, with Apple pushing Interface Builder more & more, it seems a lot of teams (especially those consisting of Designers that work with Engineers) are gravitating towards Interface Builder. For the record, I started off siding with team programmatic as it was a popular argument even amongst my instructors. So here goes nothing!

Continue reading “Auto Layout: Working with Nested Stack Views in Interface Builder”

3 Common Design Patterns across all iOS Applications

design.jpg
Source

As a Junior Developer, you learn quick that there are a lot of hurdles you’ve yet to jump over. One that’s especially difficult to identify are some of the most common design patterns that come up when developing iOS Applications. Why’s that? Because I haven’t designed enough Apps to come across this revelation. However, it’s extremely important to be aware of what they are & how / when to use them.

Continue reading “3 Common Design Patterns across all iOS Applications”

Implementing a Bridging Header File (Objective-C playing nice with Swift)

homepage-image-100584141-primary.idge

Working with Swift is great, it prevents problems at runtime (hence the term “type-safe language”), code is generally more legible, and it forces you to deal with errors. Whether you like it or not, as a Swift Developer, you will eventually have to work with Objective-C. There are countless frameworks / Cocoapods still only available in Objective-C. For example, I had to utilize a Bridging Header file in order to implement Google Sign-In on the CareerSpark application I’m working on.  Let’s dive a bit deeper.

Continue reading “Implementing a Bridging Header File (Objective-C playing nice with Swift)”

UITextView, making your scroll views more dynamic!

cover.adapt.1190.1
Awesome Photog dressed up as a Panda to catch amazing candids

UITextView has slowly but surely become one of my favorite UI elements! UITextView inherits from UIScrollView which, just in case you weren’t aware, most applications implement either some form of UITableView or UIScrollView. Warning: this Swift post shows how to manipulate UITextView given you’ve done everything programmatically.

Continue reading “UITextView, making your scroll views more dynamic!”

Keeping Your Secrets Secret in Your App

woman telling secrets, pop art retro style illustration
Source

When dealing with API’s & Authorization / User Authentication, there’s sensitive information passed around that we don’t want publicly available. Let’s talk about the simple steps to follow to ensure this sensitive information doesn’t accidentally end up on GitHub. PLEASE NOTE: This post is based in Swift but most of the steps (excluding the code itself) can be applied to Objective-C / any other Programming Language.

Continue reading “Keeping Your Secrets Secret in Your App”