Category: Xcode

0

Swift 3 appearance extensions

I just read about this and smacked myself on the forehead. Normally when developing an application I follow some sort of branding guidelines or perhaps make use of a custom font. I think most...

Protocol/delegates in Swift 3.0 0

Protocol/delegates in Swift 3.0

I declare this day a fine day having discovered non-Objective-C protocols! No more @objc protocol usage. Now it’s as simple as something like this:

And then in implementation

This is a really...

Shaking a macOS Window 0

Shaking a macOS Window

There may come a time when you’d like to shake a macOS application’s window (or one of them) to reinforce an event. In my case, I am creating a macOS application that serves as...

WatchOS 2.2.2 Debug Symbols A.W.O.L. 0

WatchOS 2.2.2 Debug Symbols A.W.O.L.

On Jul 18th Apple released several operating system updates. WatchOS 2.2.2 was one of those released updates. Four days ago. Since installation I have been unable to debug watch extensions on my real device...

Multi-platform API for Google Nearby Messages 0

Multi-platform API for Google Nearby Messages

I happened upon a video presentation from Google I/O 2016 that I felt was interesting. It was called “Introducing Nearby: Physical proximity within and without apps – Google I/O 2016”. I present it here...

Developing with a live backend 0

Developing with a live backend

Sometimes developing on a live backend is a royal pain in the ass, Yorkshire pudding included with gravy from lost puppy’s caramelized souls. Time goes by with an inability to get proper work done...

Swift optional variable assignment with ?? 0

Swift optional variable assignment with ??

Old way:

Pretty nifty. I saw this online someplace. The ?? is called a nil coalescing operator. It’s used to provide a default value when unwrapping an optional type.

 

Swift 2.2 updates 0

Swift 2.2 updates

Yesterday came a slew of updates from the mothership. One of them was Xcode 7.3 with Swift 2.2 onboard. Some capabilities have been included in Swift 2.2 that will produce some deprecation warnings. Let’s...

Coding the extra mile 0

Coding the extra mile

I recently came across some labels in a design I’ve been working on that I originally deployed using┬áNSLineBreakMode.ByTruncatingTail. Conscious of a possible situation where text coming into the system might not properly fit. It...

Extension management for Swift projects 0

Extension management for Swift projects

The way that extensions are handled in Swift is lovely. If they exist in any file, they are available project-wide. Meaning you don’t need to import them into a Swift file for functional inclusion....