Daniel Tavares

64 Flips | 2 Magazines | 10 Likes | @danielhollis963 | Keep up with Daniel Tavares on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Daniel Tavares”

Video: Cleaning Up Messy Chaining in Swift

Swift allows for chaining methods together to perform powerful operations in a single line of code. If you aren’t careful, however, this can lead to …

Structs and NSCoding

NSCoding requires the NSObjectProtocol, which is a class protocol, and can’t be conformed to by structs. If we have anything we want to encode using …

Increasing Performance by Reducing Dynamic Dispatch

Swift Guard Statement - Why you should use it

Learn how the Swift guard statement can be used to make your code more readable and maintainable. It's time to utilize Swift 2.0 for all it has to …

Every Swift Value Type Should Be Equatable - Andrew Bancroft

As I listened to the WWDC15 talk on Building Better Apps with Value Types in Swift I was struck by a sentence that I had never dawned on me …

Swift 2: “for… in” filtering

While looking through slides for What’s New in Swift again, I’ve decided to instead play around with and write down the new Swift 2 idioms here for …

Syntax

Swift header documentation in Xcode 7

Quick Help offers concise in-line reference docs for symbols, build settings, and interface objects. Want to check a symbol’s type? Quick Help it. …

iOS: A Beautiful Way of Styling IBOutlets in Swift

This morning I saw a beautiful tweet from @jesse_squires:<p>#Swift tip: Use didSet on your IBOutlets to configure views instead of cramming code into …

A Beautiful Solution to Non-Optional UIImage Named in Swift

Yesterday, I got around to watching the Swift in Practice WWDC15 Session, and I LOVED the suggestion for dealing with Image naming in Swift.<p>The big …

guard & defer

“We should do (as wise programmers aware of our limitations) our utmost best to … make the correspondence between the program (spread out in text …

When (not) to use guard

guard is one of my favorite features of Swift 2. It’s one of those subtle syntactical constructs we could totally do without. And yet having it is …

A Structy Model Layer

This week, I’d like to examine building your entire model layer out of Swift structs. Swift allows you to build your objects in two ways: values …

Top 10 iOS Swift libraries every iOS developer should know about

Swift is gaining popularity each day. If you're starting a new project, chances are that you'll decide to write it in Swift. To make the transition …

Brian Partridge - Result Driven Development

Why Swift guard Should Be Avoided

A lot has been told about the <i>guard</i> statement since its appearance in Swift. Indeed, it simplifies code and makes it more readable. But is <i>guard</i> really …

RE: Why Swift guard Should be Avoided

I saw this blog article, Why Swift guard Should Be Avoided, and it got me thinking about things I believe are fallacies but are continued to be …

3 simple for-in iteration tricks

There’s a lot more to life than just simple for-in’s. Add flair to your code with these iteration power-ups.Adding iteration requirementsA where …

Swift: Equatable with Optionals

@andrewcbancroft recently wrote a great article about how Every Swift Value Type Should Be Equatable – go ahead and read it, I’ll wait…<p>One thing that …

San Francisco

Swift: Protocol Composition 😍

I’ve been incorporating Protocol-Oriented Programming more and more in my Swift code and I LOVE it!!! Thanks again to @mhollemans for the article on …

15 Tips to Become a Better Swift Developer

Since its 1.0 release in September 2014, Savvy Apps' development team has been experimenting with and using Swift in iOS projects. Though the …

Swift: CGRect, CGSize & CGPoint

You’re (probably) doing it wrong<p>It’s been about a solid eight months since I first decided to jump completely into the Swift wormhole. Over those …

Protocol Oriented Programming

Once upon a time, in the *OP kingdom, not really far away, there was a princess called OOP.<p>Everyone knew OOP and lots of people liked her. One day, …

Alexis Gallagher - Protocols with Associated Types

Swift Tutorial: Introduction to Generics

Why make three boxes when a generic one will do?<i>Generic programming</i> is a way to write functions and data types without being specific about the types …

#180: More Swift Tricks 🎩

Today we'll continue our look at interesting <i>Swift</i> features. Let's begin.Type Matching with ‘is’Try as we might, sometimes still we end up with an …

Keep your Swift Exceptions clean, easy to update and future proof

Finally a descent exception model in a modern language, a model where it’s absolutely obvious when to use <i>do/try/catch</i>. If you miss it, the compiler …

Swift Playgrounds — Interactive Awesomeness

A Swift Playground is a coding environment that allows a user to interact with Swift code, without requiring the user to create a project. Imagine …

#207: Annotating Swift with MARKs, TODO's and FIXME's 🎯

When <b>Swift</b> debuted, we said goodbye to using #pragma pre-processor definitions to organize our code. Don't worry, <b>Xcode</b> still has our backs. We can use …

dotSwift 2016 Highlights, part 1

Lots of inspiring ideas after coming back from last dotSwift at <b>Théâtre des Variétés, Paris.</b> I would like to highlight the most important, so here’s …