なんとかするから、なんとかなる

エンジニア関係のことを書きます

2019-01-02から1日間の記事一覧

Swift 4.2 How to get a all values of enum

Introduction This article shows how to use "CaseIterable" protocol which introduced in Swift4.2. This protocol can provede all values of enum type. So, I do not need to implement such a property any more. Before Swift4.2 In Swift4.1 or ear…

Swift4.2 列挙型Enumで全ての要素を取得する

English version below https://hopita.hatenablog.com/entry/2019/01/02/195204 はじめに オブジェクトの状態を定義など、いろいろと便利な列挙型Enumですが、この度Swift4.2で新しい機能が追加されていました。 この記事にはSwift 4.2からの新機能、列挙型…