When we are using selectItem() method or when we use the new property scrollType with option .Max(UInt) (when #28 gets merged), we can pass wrong item number. In that case we should unify the handling and I suggest adding new ErrorType to our SwiftCarouselError type, something like BadNumberOfItems.
When we are using
selectItem()
method or when we use the new propertyscrollType
with option.Max(UInt)
(when #28 gets merged), we can pass wrong item number. In that case we should unify the handling and I suggest adding new ErrorType to ourSwiftCarouselError
type, something likeBadNumberOfItems
.