Thu, Mar 5
Trigonometry for iOS Game Developers

Regarding game development and the necessary math skills, Nick Lockwood:

“…a basic understanding of trigonometry, combined with some common sense, will take you a long way. In this tutorial, you will learn about some important trigonometric functions and how you can use them in your games. Then you’ll get some practice applying the theories by developing a simple space shooter iPhone game using the Sprite Kit game framework.”

Read more about SpriteKit, Swift and Trigonometry.

Wed, Mar 4
Extending C Structures in Swift

I’ve been coding in C since 1986 – it’s still my goto language. For like-minded C developers out here, check out Helge Heß’s post extending C structures in Swift:

“One of the nicer things in Swift is that plain C struct’s are exposed as Swift struct’s. Which allows you to extend those structures and that turns out to be quite powerful and avoids a lot of ‘wrap-to-make-it-look-nice code’.”

Heß’s post is my favorite style, full of code.

iOS Developers and the Raspberry Pi 2

Internet of Things (IoT) is all about interconnectivity between devices and applications. IoT is an enabler of everything from the smart car to the automated home (with many stops in between).

Pi2ModB1GB_-comp-500x283

Good news is, it’s estimated that millions of IoT developers will be needed in the coming years!

As someone who is interested in building apps for iOS, I thought you may have an interest to learn more about IoT from the developer perspective. With that in mind, I’ve started a weekly newsletter focused solely on IoT development: IoT Developer’s Journal.

Raspberry Pi 2 is a great starting point for software developers interested in learning to program hardware. To introduce iOS developers to IoT development, I am giving away three (3) Raspberry Pi 2 devices.

All subscribers to IoT Developer’s Journal will be entered in the drawings. To subscribe, visit the link below (this is an opt-in weekly email newsletter):

Subscribe to IoT Developer’s Journal – Enter Me in Raspberry Pi 2 Giveaway!

I hope you will consider subscribing, and if you do, I wish you the best of luck in the giveaway!

Due to international regulations, the Raspberry Pi 2 giveaway is open only to residents of the U.S.

Tue, Mar 3
Sketch Plugin to Create iOS Assets

Creating the necessary assets for an iOS release is not difficult, but it is tedious. If you are a Sketch user, there is a solution…

Yari D’areglia describes how to create a plugin for Sketch:

“…to generate iOS assets with @1x, @2x and @3x scale factor.”

Rendering Text in Metal with Signed-Distance Fields

Warren Moore covers how to use the GPU to add text into a Metal app.

Prior to this post I wasn’t familiar with signed-distance fields, here’s a primer:

“…a precomputed representation of a font atlas that stores the glyph outlines implicitly. Specifically, the texel values of a signed-distance field texture correspond to the distance of the texel to the nearest glyph edge, where texels outside the glyph take on negative values.”