diff --git a/Source/ARTPaginatedResult.m b/Source/ARTPaginatedResult.m index 39b37bacc..49e39f56c 100644 --- a/Source/ARTPaginatedResult.m +++ b/Source/ARTPaginatedResult.m @@ -137,4 +137,9 @@ + (void)executePaginated:(ARTRestInternal *)rest withRequest:(NSMutableURLReques }]; } +- (nonnull instancetype)init { + [NSException raise:NSInternalInconsistencyException format:@"ARTPaginatedResult can't be initialized with init."]; + __builtin_unreachable(); +} + @end diff --git a/Source/include/Ably/ARTPaginatedResult.h b/Source/include/Ably/ARTPaginatedResult.h index a5b73561f..423d74cd5 100644 --- a/Source/include/Ably/ARTPaginatedResult.h +++ b/Source/include/Ably/ARTPaginatedResult.h @@ -27,7 +27,7 @@ NS_SWIFT_SENDABLE @property (nonatomic, readonly) BOOL isLast; /// :nodoc: -- (instancetype)init UNAVAILABLE_ATTRIBUTE; +- (instancetype)init; /** * Returns a new `ARTPaginatedResult` for the first page of results.