Skip to content

Instantly share code, notes, and snippets.

View MrSkwiggs's full-sized avatar
:shipit:

Dorian MrSkwiggs

:shipit:
View GitHub Profile
@MrSkwiggs
MrSkwiggs / LocalizationManagerGenerator.swift
Last active October 29, 2022 23:41
A Swift script that generates enums for each strings file your project contains. Compile-time localization validation !
#!/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
@MrSkwiggs
MrSkwiggs / MultilevelOptionalCoalescing.swift
Last active April 16, 2020 11:40
?? Operator for multiple-optionals - Overloads that extends the default ?? operator behaviour up to triple optionals
//
// 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
*/