diff --git a/CouchTrackerCore/CodeGeneration/EnumClosures.swift b/CouchTrackerCore/CodeGeneration/EnumClosures.swift index 776858b1..68de80bf 100644 --- a/CouchTrackerCore/CodeGeneration/EnumClosures.swift +++ b/CouchTrackerCore/CodeGeneration/EnumClosures.swift @@ -6,7 +6,7 @@ case start(data: T) case loading case completed(count: Int, message: String) -} + } ``` will generate the following code @@ -25,7 +25,7 @@ guard case let .completed(count, message) = self else { return } fn(count, message) } -} + } ``` */ public protocol EnumClosures {} diff --git a/CouchTrackerCore/CodeGeneration/EnumProperties.swift b/CouchTrackerCore/CodeGeneration/EnumProperties.swift index fa435f25..e574ec76 100644 --- a/CouchTrackerCore/CodeGeneration/EnumProperties.swift +++ b/CouchTrackerCore/CodeGeneration/EnumProperties.swift @@ -12,7 +12,7 @@ will generate the following code ``` -extension ViewState { + extension ViewState { internal var isStart: Bool { guard case .start = self else { return false } return true @@ -34,7 +34,7 @@ extension ViewState { guard case let .completed(count, message) = self else { return nil } return (count, message) } -} + } ``` */ public protocol EnumProperties {}