Code-free
Code-free

Swift Documentation Comments

Work in Progress

Russ Bishop
June 22, 2014

Update: A bug sometimes prevents Xcode from reading SwiftDocs for files other than the current file in a framework project, so you won't always see the doc comments in Quick Help or when Option-clicking a symbol. Hopefully the bug will be fixed.

Update #2: mattt of NSHipster fame heard from a little birdie that the doc comment . . .

Read More

#663399becca

Can't handle it

Russ Bishop
June 12, 2014

I can't write about Rebecca Meyers and what the Meyers family is going through for the same reasons as Jason Kottke:

Sometimes parents tend to get caught up in the minutia of parenthood: the logistics of getting from one place to another without losing your shit, the weary deflection of the 34th "why?" question of . . .

Read More

Swift Arrays and Dictionaries

Clearing my confusion

Russ Bishop
June 11, 2014

While reading The Swift Programming Language, I came across a couple of sections like Collection Types and Classes and Structures: Assignment and Copy Behavior for Collection Types

The obvious first issue is

Immutability has a slightly different meaning for arrays, however. You are still not allowed to perform any . . .

Read More

Swift: Generic extensions in libraries currently broken

Just saving you some time

Russ Bishop
June 11, 2014

If you were thinking of creating a Swift framework and writing some unit tests, you should be aware of a bug. You cannot currently extend a built-in or standard library generic type with any properties or methods that require the type's generic parameters.

In other words, create a framework project in Swift and add this to a . . .

Read More

Handle Exceptions in Swift

Baby's got a brand new bag

Russ Bishop
June 07, 2014

Unless you've been living under a rock, you're probably aware that Apple has released a new programming language called Swift. It's still a work-in-progress, moving towards 1.0. Designing a language and a standard library to go with it is no small task, so it's not surprising they haven't gotten around to filling in all . . .

Read More

Auto Layout

I just can't quit you

Russ Bishop
May 25, 2014

I've learned to love Auto Layout, but it wasn't always so.

In the beginning I tried to use it. Really, I did. Despite my best efforts, I ran into a huge wall of failure. Then I went back to springs and struts.

The second time, I read the tutorials, watched the WWDC videos, tried to achieve Zen, and became familiar . . .

Read More

Immutability and Thread Safety

it depends on what the definition of "is" is

Russ Bishop
April 17, 2014

When I talk about immutable collections and immutable objects being thread-safe, what do I really mean by that?

Part of what makes traditional multithreaded programming so difficult is that you never have truly accurate information about the state of things. If you ask a list "are you empty?" and the list says . . .

Read More

Archive
   Subscribe by email and never miss a post.