diff --git a/Sources/d3-stories-instagram/data/StoriesError.swift b/Sources/d3-stories-instagram/data/StoriesError.swift index 3bb362a..e8e47b2 100644 --- a/Sources/d3-stories-instagram/data/StoriesError.swift +++ b/Sources/d3-stories-instagram/data/StoriesError.swift @@ -8,8 +8,8 @@ import Foundation -@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 6.0, *) /// Description for errors foind while validating ``IStory`` data set +@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 6.0, *) public struct StoriesError: IStoriesError { public let description: String diff --git a/Sources/d3-stories-instagram/enum/StoriesInternalError.swift b/Sources/d3-stories-instagram/enum/StoriesInternalError.swift index abbb8aa..1487fda 100644 --- a/Sources/d3-stories-instagram/enum/StoriesInternalError.swift +++ b/Sources/d3-stories-instagram/enum/StoriesInternalError.swift @@ -11,7 +11,6 @@ import SwiftUI /// Set of errors for input data validation enum StoriesInternalError: String, IStoriesValidater, IStoriesError { - case empty = "There are no stories" case duration = "Duration must be a positive number greater than zero" diff --git a/Sources/d3-stories-instagram/example/CustomStoriesValidater.swift b/Sources/d3-stories-instagram/example/CustomStoriesValidater.swift index 652e76e..21c0293 100644 --- a/Sources/d3-stories-instagram/example/CustomStoriesValidater.swift +++ b/Sources/d3-stories-instagram/example/CustomStoriesValidater.swift @@ -8,7 +8,7 @@ import Foundation -/// Custom validator +/// Custom validator for stories @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 6.0, *) public struct CustomStoriesValidater: IStoriesValidater{