Linux compatible Swift and Swift Package Manager

Apple opensourced Swift today, as promised in early 2015. This is great, awesome etc... but I'm not about that here. Together with Swift - programming language, Apple presented Linux port of Swift compiler and some tools. One of the tools is Swift Package Manager - that's the reason of this…

Swift reflection about food

Reflection in practice Reflection technique may be useful to build quasi generic functions that operate at runtime. It may be quasi type safe, though it uses runtime too - as such can't be optimised/validated during compilation. With Objective-C we used <runtime/objc.h> and do all the…

Where "where" may be used?

This is by far the most faved/retweeted Swift tip of mine lately: don't forget you can do this 🎉 in Swift #swiftlang pic.twitter.com/izVlfcqOYv— Marcin Krzyzanowski (@krzyzanowskim) November 10, 2015 indeed cool, unexpected and forgettable feature of Swift pattern-matching. The fact is you can use…

Swift London about Natalie, the talk

Earlier this month (October 19, 2015), I had the pleasure to be part of Swift London meetup. I talked about Natalie - Storyboard Code Generator presenting my approach to the "problem" of Storyboards and Swift. Below you can find my presentation, along with an amateur video recording (captured…

ChunkSequence 🔪🍰

Have cake and eat it Have a cake and consume the cake by the Swift function, at the same time. Magic. The nature of the Swift type is that it is copied or copied on write. When I assign A to B (A = B), then effectively B is copy of…