Skip to content

Instantly share code, notes, and snippets.

Avatar

Dorian Grolaux MrSkwiggs

View GitHub Profile
@MrSkwiggs
MrSkwiggs / MultilevelOptionalCoalescing.swift
Last active Apr 16, 2020
?? Operator for multiple-optionals - Overloads that extends the default ?? operator behaviour up to triple optionals
View MultilevelOptionalCoalescing.swift
//
// Created by Dorian Grolaux on 14/01/2020.
// Copyright © 2020 Skwiggs Inc. All rights reserved.
//
import Foundation
/**
Nil coalesces 2-level optionals in a single step
*/
@MrSkwiggs
MrSkwiggs / LocalizationManagerGenerator.swift
Last active Aug 30, 2019
A Swift script that generates enums for each strings file your project contains. Compile-time localization validation !
View LocalizationManagerGenerator.swift
#!/usr/bin/env xcrun --sdk macosx swift
//
// AutoLocalizationManagerCreator
//
// Created by Dorian Grolaux on 25/04/2019.
// Copyright © 2019 Dorian Grolaux. All rights reserved.
//
import Foundation