FLEXSingleRowSection.h 999 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // FLEXSingleRowSection.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 9/25/19.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXTableViewSection.h"
  9. /// A section providing a specific single row.
  10. ///
  11. /// You may optionally provide a view controller to push when the row
  12. /// is selected, or an action to perform when it is selected.
  13. /// Which one is used first is up to the table view data source.
  14. @interface FLEXSingleRowSection : FLEXTableViewSection
  15. /// @param reuseIdentifier if nil, kFLEXDefaultCell is used.
  16. + (instancetype)title:(NSString *)sectionTitle
  17. reuse:(NSString *)reuseIdentifier
  18. cell:(void(^)(__kindof UITableViewCell *cell))cellConfiguration;
  19. @property (nonatomic) UIViewController *pushOnSelection;
  20. @property (nonatomic) void (^selectionAction)(UIViewController *host);
  21. /// Called to determine whether the single row should display itself or not.
  22. @property (nonatomic) BOOL (^filterMatcher)(NSString *filterText);
  23. @end