NSArray(AWSMTLManipulationAdditions)

@interface NSArray (AWSMTLManipulationAdditions)

// The first object in the array or nil if the array is empty.
// Forwards to `firstObject` which has been first declared in iOS7, but works with iOS4/10.6.
@property (nonatomic, readonly, strong) id awsmtl_firstObject;

// Returns a new array without all instances of the given object.
- (NSArray *)awsmtl_arrayByRemovingObject:(id)object;

// Returns a new array without the first object. If the array is empty, it
// returns the empty array.
- (NSArray *)awsmtl_arrayByRemovingFirstObject;

// Returns a new array without the last object. If the array is empty, it
// returns the empty array.
- (NSArray *)awsmtl_arrayByRemovingLastObject;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, strong) id awsmtl_firstObject

    Swift

    var awsmtl_firstObject: Any! { get }
  • Undocumented

    Declaration

    Objective-C

    - (NSArray *)awsmtl_arrayByRemovingObject:(id)object;

    Swift

    func awsmtl_array(byRemoving object: Any!) -> [Any]!
  • Undocumented

    Declaration

    Objective-C

    - (NSArray *)awsmtl_arrayByRemovingFirstObject;

    Swift

    func awsmtl_arrayByRemovingFirstObject() -> [Any]!
  • Undocumented

    Declaration

    Objective-C

    - (NSArray *)awsmtl_arrayByRemovingLastObject;

    Swift

    func awsmtl_arrayByRemovingLastObject() -> [Any]!