Skip to content

Commit

Permalink
Specify the type more
Browse files Browse the repository at this point in the history
  • Loading branch information
Hari-07 committed Apr 28, 2024
1 parent 2a58ab9 commit 8428c96
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -142,7 +142,7 @@ + (nullable GMSCameraUpdate *)cameraUpdateFromChannelValue:(NSArray *)channelVal
return nil;
}

+ (NSArray<GMSStrokeStyle *> *)strokeStylesFromPatterns:(NSArray *)patterns
+ (NSArray<GMSStrokeStyle *> *)strokeStylesFromPatterns:(NSArray<NSArray *> *)patterns
strokeColor:(UIColor *)strokeColor {
NSMutableArray *strokeStyles = [[NSMutableArray alloc] initWithCapacity:[patterns count]];
for (unsigned int i = 0; i < [patterns count]; i++) {
Expand All @@ -156,7 +156,7 @@ + (nullable GMSCameraUpdate *)cameraUpdateFromChannelValue:(NSArray *)channelVal
return strokeStyles;
}

+ (NSArray<NSNumber *> *)spanLengthsFromPatterns:(NSArray *)patterns {
+ (NSArray<NSNumber *> *)spanLengthsFromPatterns:(NSArray<NSArray *> *)patterns {
NSMutableArray *lengths = [[NSMutableArray alloc] initWithCapacity:[patterns count]];
for (unsigned int i = 0; i < [patterns count]; i++) {
NSNumber *length = [patterns[i] count] > 1 ? patterns[i][1] : @0;
Expand Down

0 comments on commit 8428c96

Please sign in to comment.