swift
1enum ResetPattan:Bool{ 2 case reset = true 3 case notReset = false 4} 5 6
上記のように.resetを使用したらtrue、.notResetを使用したらfalseを使えるようにしたいのですがどのようにしたらできますか?
今のままですと
'ResetPattan' declares raw type 'Bool', but does not conform to RawRepresentable and conformance could not be synthesized
と怒られてしまいます
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/04 04:26