FLEXScopeCarousel.h 549 B

123456789101112131415161718192021
  1. //
  2. // FLEXScopeCarousel.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 7/17/19.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. /// Only use on iOS 10 and up. Requires iOS 10 APIs for calculating row sizes.
  10. @interface FLEXScopeCarousel : UIControl
  11. @property (nonatomic, copy) NSArray<NSString *> *items;
  12. @property (nonatomic) NSInteger selectedIndex;
  13. @property (nonatomic) void(^selectedIndexChangedAction)(NSInteger idx);
  14. - (void)registerBlockForDynamicTypeChanges:(void(^)(FLEXScopeCarousel *))handler;
  15. @end