[ios, macos] Corrected return type of MGLShape factory method
This commit is contained in:
@@ -33,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
not be parsed as valid GeoJSON source code. If `nil`, `outError` contains an
|
||||
`NSError` object describing the problem.
|
||||
*/
|
||||
+ (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError;
|
||||
+ (nullable MGLShape *)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError;
|
||||
|
||||
#pragma mark Accessing the Shape Attributes
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
@implementation MGLShape
|
||||
|
||||
+ (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError {
|
||||
+ (nullable MGLShape *)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError {
|
||||
NSString *string = [[NSString alloc] initWithData:data encoding:encoding];
|
||||
if (!string) {
|
||||
if (outError) {
|
||||
|
||||
Reference in New Issue
Block a user