YapDatabaseViewSectionChange

@interface YapDatabaseViewSectionChange : NSObject <NSCopying>

YapDatabaseViewChange is designed to help facilitate animations to tableViews and collectionsViews.

In addition to the documentation available in the header files, you may also wish to read the wiki articles online, which are designed to give you an overview of the various technologies available.

General information about setting up and using Views: https://github.com/yapstudios/YapDatabase/wiki/Views

General information about technologies which integrate with Views: https://github.com/yapstudios/YapDatabase/wiki/LongLivedReadTransactions https://github.com/yapstudios/YapDatabase/wiki/YapDatabaseModifiedNotification

  • The type will be either:

  • YapDatabaseViewChangeInsert or
  • YapDatabaseViewChangeDelete

  • See

    YapDatabaseViewChangeType

    Declaration

    Objective-C

    @property (readonly, nonatomic) YapDatabaseViewChangeType type;

    Swift

    var type: YapDatabaseViewChangeType { get }
  • The section index.

    If the type is YapDatabaseViewChangeDelete, then this represents the originalIndex of the section (pre-animation). If the type is YapDatabaseViewChangeInsert, then this represents the finalIndex of the section (post-animation).

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger index;

    Swift

    var index: UInt { get }
  • The corresponding group for the section.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull group;

    Swift

    var group: String { get }