YAML Superpowers, part 2: Multiline Strings
This is part 2 of a series of post about lesser-known features of YAML β especially the ones useful in contexts like CI or toolsβ config files. In this post we will discover the many ways YAML can represent strings, including multiline strings, keeping or stripping indentation, and more!
YAML Superpowers, part 1: JSON is YAML
This post is part 1 of a series of posts where I plan to focus on little-known features of YAML like multiline string processing, aliases and anchors, base64 support, tags and more.
StringInterpolation in Swift 5 β AttributedStrings
In the previous post, we introduced the new StringInterpolation design coming to Swift 5. In this second part, Iβll focus on one application of that new ExpressibleByStringInterpolation, to make NSAttributedString prettier.
StringInterpolation in Swift 5 β Introduction
In Swift 4, the StringInterpolation protocol got deprecated, because its original design was inefficient and inflexible, with the goal of redisigning it entirely after Swift 4. Since then, SE-0228 introduced a new design for StringInterpolation, which is going to be part of Swift 5, and opens a whole lot of powerful possibilities.
Private properties in protocols
In Swift, protocols canβt specify access control to the properties they declare. If a property is listed in a protocol, you have to make conforming types declare those properties explicitly.
But sometimes, even if you need those properties in order to provide your implementations, you donβt want those properties to be used outside the type. Letβs see how to workaround that problem.
Exploring @dynamicMemberLookup
With Xcode 10 and Swift 4.2, the new @dynamicMemberLookup proposal is now available in Swift. Letβs have some fun with it.
Using Dedicated Objects as Delegates & Datasources
Today for my come-back post (hopefully), Iβll be talking about a tip for your UITableViewDataSource and UITableViewDelegate. The idea is in fact applicable to a lot of other things following the same delegate pattern, but the use case of UITableView will hopefully be the most concrete example for most people.
SwiftGen 4.2 and other news
SwiftGen β my tool to generate Swift code so you can use your images, localized strings, fonts, storyboards and other assets in a type-safe way β has just been released in version 4.2 after a big internal refactoring. Iβve also been working on other OSS projects lately.
This article intends to give you some news on all those various OSS projects as well as what has been going on lately and whatβs next to come.
Still Alive
This is a quick post to reassure you that this blog is still alive π And announcing the subjects that I plan to write about in the upcoming articles.
Talking at conferences
This month, Iβm going to talk at (NSSpain and FrenchKit) about Swift π Iβm looking forward to speak for the first time at such great conferences, and I really hope to see you there!