Swift: Logging

beech-1446300-m

Leaping from tree to tree! As they float down the mighty rivers of British Columbia! With my best girl by my side!
The Larch! The Pine! The Giant Redwood tree! The Sequoia!
The Little Whopping Rule Tree! We’d sing! Sing! Sing!

The Lumberjack Song

Swift logging is a delightfully odd creature. Did you know, for instance, that there are separate standard and debugging logging features? Or that you could log directly to a string?

Here are a bunch of logging tips for you to enjoy.

Read On…

Various bits and bobs

front-red-mail-box-1360564-m

Clearing out my mailbox, this morning.

Fabio Virgi of Paddle.com sent over a PR kit for their new Mac app analytics package. With just a few lines of code, the embedded tools enable you to track how the app is being used, IAP conversions, etc.   Fabio writes, “It’s totally free to use, and probably worth mentioning that it can be used for Mac App Store apps and those being independently distributed.” Not really anything I’d use but may be of interest to some of you out there.

Read On…

Swift: Alternative Lintage

broom-2-1209091-m

Today’s post on SwiftLint over at Natasha (The Robot) Murashev’s This Week in Swift inspired me to stop complaining abut lint issues and start building. While I love the idea behind SwiftLint, I didn’t entirely love the implementation or the rules.

I wanted something good enough to be used today with real code, even in imperfect form. It had to run from the command line and work with playgrounds. It had to be able to scan files added to Xcode projects by reference as well as those physically stored in the $SRCROOT.

Read On…