Archivo de la etiqueta: Swift

Swift blog: Swift is now open source!

Today Apple surprised us by finally making Swift an open source project. At Swift.org you can find all the information about it. 4 main projects are being made public: Compiler and Standard Library, comprised by Swift itself and a repository … Sigue leyendo

Publicado en Uncategorized | Etiquetado , , , , , | Dejar un comentario

Swift blog: Protocols are not always the way to go

I keep forcing myself to use protocols more and more when coding Swift. Today’s issue came from the following scenario: I have a (static) table view with 4 prototype cells defined on Interface Builder. Each cell has its own identifier … Sigue leyendo

Publicado en Uncategorized | Etiquetado , , , | Dejar un comentario

Swift blog: Why is my Hashable implementation crashing on an iPhone 4s?

Today I found what I thought of as a bug that had me scratching my head for about an hour. My app ran just perfectly on my iPhone 6S Plus. However, when I sent a build to my designer for … Sigue leyendo

Publicado en Uncategorized | Etiquetado , , , | Dejar un comentario

Swift blog: Wrangling protocols

The app I’m working on has a set of interesting requirements on the data layer. Let’s try to break it down: I have a set of data that can be represented on 2 different ways, although is the same type … Sigue leyendo

Publicado en Uncategorized | Etiquetado , , | Dejar un comentario

Tiny Networking: Building Micro-Libraries in Swift [Video]

Chris Eidhof from objc.io is back at it, now with a cool video on how he built a tiny networking micro-library using functional programming using Swift. (I’ve embedded the video right here, but you can watch at Realm’s blog, with … Sigue leyendo

Publicado en Uncategorized | Etiquetado , | Dejar un comentario

› Building NSNotificationCenter from scratch using Swift

Excellent Friday Q&A post from Mike Ash. This guy rocks.

Publicado en Uncategorized | Etiquetado , | Dejar un comentario

Swift app size

I’ve been writing Swift for the most part of the past 6 months. Mostly playing with it, nothing serious. But today, I submitted my first Swift app to iTunes Connect (currently in beta review), and was reminded of the fact … Sigue leyendo

Publicado en Uncategorized | Etiquetado , | Dejar un comentario

How to run networking code on Swift Playgrounds

I’m sure most of you know this by now. If you’re mocking your network calls using Swift on a Playground, it is important to tell the Playground that it can run code asynchronously. Import XCPlayground and call XCPSetExecutionShouldContinueIndefinitely with a … Sigue leyendo

Publicado en Uncategorized | Etiquetado , | Dejar un comentario

› Functional View Controllers – Wrapping View Controllers in a Functional Way

Chris Eidhof: When working with UIKit, view controllers are the opposite of isolated: they are connected to everything. The view controller often pulls network or database data, populates and interacts with views, and finally, it pushes other view controllers onto … Sigue leyendo

Publicado en Uncategorized | Etiquetado , | Dejar un comentario

› Numbers and Swift

Dalton Cherry at vluxe.io: Swift favors speed and safety by reducing the number of errors that can be made. Objective-C on the other hand was designed to be simple. Swift was designed to make you trip with the cord and … Sigue leyendo

Publicado en Uncategorized | Etiquetado , | Dejar un comentario