andyval

190 Flips | 1 Magazine | 294 Followers | @andyval | Keep up with andyval 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 “andyval”

New Course: Beginning Metal

Today I’m happy to announce my brand new course on raywenderlich.com: Beginning Metal!Metal is Apple’s low-level GPU access API. It’s the underlying …

Building a Custom Collection in Swift

Arrays, dictionaries, and sets are all examples of commonly used collection types; they come bundled with the Swift standard library.But what if they …

Ranges in Swift 3

<i>This is a short excerpt from the Collections chapter in Advanced Swift, slightly amended for the blog. Chris Eidhof and I are almost done updating</i> …

Swifty Quicky: Checking for a tuple in an array

Jordan Rose:<i>Tuples can’t conform to protocols, so they don’t count as Equatable.</i>

Fun and Fast Audio with Swift

Even though iOS and OSX are rich multimedia environments, app sound is often overlooked, and true innovation in audio technology has lagged behind. …

Swift Collections — Part 1 (Arrays and Sets)

There are three collection types in the Swift language: Arrays, Sets, and Dictionaries. In general, a collection type is a way to group related items …

Bond Tutorial: Bindings in Swift

The name’s Bond, Swift BondAre you tired of manually wiring up your UI code? Yeah, I thought so. It’s such a mundane task, but we all have to do it. …

Swift 2 Core Data

In this Swift Core Data Tutorial we will be covering; Fetched Request, <b>NSManagedObjectModel</b>, Persistent Store and Persistent Store Coordinator, …

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 …

Collection Indices, Slices, and Generics

I missed posting about the last couple of releases of Swift before it was open sourced, but now that I have some time to write a couple of posts over …

Migrating `if`s to `guard`s in Swift

Scattered throughout my code are uncountable variations on the following statement:Recently, I have been converting a vast swath of these from if …

Swift bracing

By convention, Swift embraces the “One Truce Brace Style” or <i>1TBS</i> as its standard for laying out code. A variation of K&R bracing, 1TBS adopts the …

Advanced Swift: Create Today Widget (Extension) - iOS

In this Advanced Swift 2 Tutorial I am going to show you how to utilize some of the features that were added in iOS 8. This tutorial will cover how …

Swift Collections

In the previous article, while trying to understand a major difference between Arrays and Dictionaries, we created our own sequence. But we can go …

Putting a UICollectionView in a UITableViewCell in Swift

A few years ago, I wrote this post on putting a collection view inside a table view cell. Collection views were still pretty new and there wasn’t a …

Protocol-Oriented Programming in Swift 2

IntroductionWith the release of Swift 2, Apple added a range of new features and capabilities to the Swift programming language. One of the most …

iOS 9 Storyboards Tutorial: What’s New in Storyboards?

<i>Note from Ray:</i> This is an abridged version of a chapter from iOS 9 by Tutorials, to give you a sneak peek of what’s inside the book, released as part …

Switching Your Brain to Swift

Existing codebase + existing brain + Swift. What could go wrong?<p>17 August 2015 • Tags: OS X, iOS, Swift, conferences<p><i>Based on a talk given at 360iDev</i> …

Objective-C

Collection Data Structures in Swift

What kind of performance do you want from your data structure?<p><i>Update note:</i> This tutorial was updated for Swift 3.0 and Xcode 8.0 by Niv Yahel. …

IPhone 7

Swift: The Genius of Protocols

I’m a big fan of Swift — Ferrite Recording Studio, the big new app I’m working on, is written in it (more on that another day).I’ve found it hard to …

Bezier Paths and Gesture Recognizers

In this tutorial we’ll be creating an app that lets you play around with shapes, moving, scaling and rotating them. We’ll be UIGestureRecognizers and …

Swift Whole Module Optimization

Jul 27, 2015 · 3 minute read <br>SwiftXcode<p><i>I like it when improvements to the tools give us performance gains with little or no work on our part. In this</i> …

They grow up fast: Apple quietly bulks up Swift and Xcode in year two

From error handling to app thinning, Apple continues to nudge devs away from ObjC.<p>While most people tune in to Apple's WWDC keynote to figure out …

Error Handling in Swift 2.0

Swift 2.0 has a new way of error handling. It uses a do-try-catch syntax, which is the replacement for NSError . In this post we will discuss how to …

Objective-C

Download free eBooks in pdf, epub and kindle. Read the best e-books FREE

Kindle

Today I Learned: Reflection in Swift

With the introduction of Swift at WWDC one year ago, came something equally revolutionary for iOS and OS X developers – playgrounds. Not only are …

Prototyping

A Beginner’s Guide to UIScrollView

In iOS, scroll views are used to view content that won’t fit entirely on the screen. Scroll views have two main purposes: To let users drag the area …

GroundUp JSON Stringify in Swift

Lets start with what JSON Stringify is , <b>JSONStringify</b> is a function that will take a JSON Object and return a JSON String.<p>A JSON object contains …

JavaScript

Swift 2 and CoreMIDI

Swift 1.2 is notorious regarding its lack of function pointers to deal with C APIs such as Core MIDI. I’ve complained^H^H^H^H^H written about this …

Introducing Protocol-Oriented Programming in Swift 2

Swift Bird brings speedy new features to Swift 2!<i>Note:</i> This tutorial requires Xcode 7 and Swift 2, which will be in beta until this fall. You can …