# On Being a Monster

### Don't do this. Seriously.

June 01, 2015

Edit: There are some important developments, please make sure you check them out.. You shouldn't have tried to use this code before but now it's just completely unnecessary.

Original:

This is horrible and you should never never do this under any circumstances. There are plenty of bear traps in software engineering. You needn't put . . .

# More Swift Attributes

### Use this one weird trick

May 28, 2015

Swift has a variety of little documented (or undocumented) attributes just sitting there waiting to be used. Let's look at a few of them:

## @inline

This attribute gives the compiler inlining hints. The valid values are __always and never. I don't think I'd use this one (especially __always) unless I was absolutely certain I needed . . .

# discoveryd is garbage

May 05, 2015

Craig Hockenberry points out that discoveryd is a piece of absolute garbage. Marco chimes in. Many others have been having similar issues.

I just wanted to add my name to the list.

At home, I can almost never successfully make AirDrop work between my iOS devices and Mac, or between my wife's Mac and mine. It is so unreliable that I . . .

# A Signed Resource Has Been Added, Modified, or Deleted

### My Personal Hell

April 26, 2015

If you find yourself suffering from the message A signed resource has been added, modified, or deleted every time you attempt to run your app on-device I hope I can save you some trouble.

This tends to happen to projects with extensions and the culprit appears to be CocoaPods. Somehow frameworks relevant to the main app were being copied to . . .

# Swift Nested Closure Captures

### There is no escape

April 23, 2015

Update: This has been fixed!

Just in case others run into this issue, I wanted to document it here. @noescape causes some curious behavior when nesting closures. It appears to cause a captured mutable local to become a separate copy, meaning changes that should be visible in one sibling closure aren't visible to the other.

import Cocoa  . . .

# Swift 1.2

### Some overlooked goodies

April 14, 2015

Apple has delivered on their promise to be, well, swift with Swift. Version 1.2 has been released and includes a number of updates and syntax changes.

Some are less welcome, like requiring parameter names for closures in methods with optional parameters. Others are great additions like Set or the ability for value-returning closures to . . .

# UIKit Missing Bits #1

### Some Handy Utilities

April 03, 2015

Just a quick post today. Here are some UIKit bits that should have always existed but after 8 years are still absent:

• setHidden:animated: - Absolutely inexcusable that we still have basic UIView properties that can't be animated
• setEnabled:animated: - Ditto for UIControl
• setEnabled:animated: - For some inexplicable reason, . . .