Archivo de la etiqueta: swift blog

Bringing piping syntax from Elixir to Swift

I’ve been writing Elixir for my main backend needs for the past few months and I’ve really liked it — specially its syntax. In fact, I’ve gotten so into its syntax that I’ve often found myself trying to write Swift … Sigue leyendo

Publicado en Elixir | Etiquetado , , , | Comentarios desactivados en Bringing piping syntax from Elixir to Swift

On Apple's take on how to handle JSON with Swift 3

A couple of days ago, Apple published this post in which they describe some ways one can parse JSON using core languages of Swift 3. Weird thing, they suggest that it is OK to have a type download JSON by … Sigue leyendo

Publicado en Swift | Etiquetado , , | Dejar un comentario

#selector

One of my favourite changes in Swift 2.2 is that Objective-C selectors now are first class citizens in the Swift ecosystem. So long to error-prone selector names as Strings. Swift 2.2 lets you use the #selector expression to reference a … Sigue leyendo

Publicado en Uncategorized | Etiquetado , | Dejar un comentario

How I deal with JSON in Swift

Edit: I’ve updated this post to Swift 3’s syntax. The original post with Swift 2.X syntax can be found here. It seems that the new hot thing these days is open sourcing your Swift JSON parsing library. Lyft, Big Nerd … Sigue leyendo

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

Swift blog: Keeping up with the Swift mailing lists

It can be a pain. Specially if you’re subscribed to all of them. Thankfully, there’s an app for that. 🙄 Hirundo is a dedicated RSS reader for the Swift mailing lists. Read comfortably, keep up with discussions, bookmark conversations. Just … Sigue leyendo

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

Swift blog: Watching the language evolve, pt. 2

Of course, if you want to be absolutely on top of everything that’s going on with Swift (now open source), head over to the Swift.org’s Mailing List section and subscribe to the projects that are of your interest.

Publicado en Uncategorized | Etiquetado , , | Dejar un comentario

Swift blog: Watching the language evolve

Now that Swift is open source, we have a lot of visibility inside the project. That includes new features and discussions that can help us be prepared for new features or important changes on the language itself. If you go … Sigue leyendo

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

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