EAFeatureItem.m 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // EAFeatureItem.m
  3. // EAFeatureGuide
  4. //layoutWithFeatureItem
  5. //
  6. #import "EAFeatureItem.h"
  7. @interface EAFeatureItem ()
  8. @end
  9. @implementation EAFeatureItem
  10. - (instancetype)initWithFocusView:(UIView *)focusView focusCornerRadius:(CGFloat) focusCornerRadius focusInsets:(UIEdgeInsets) focusInsets
  11. {
  12. self = [super init];
  13. if (self) {
  14. _focusView = focusView;
  15. self.focusCornerRadius = focusCornerRadius;
  16. self.focusInsets = focusInsets;
  17. }
  18. return self;
  19. }
  20. - (instancetype)initWithFocusRect:(CGRect)rect focusCornerRadius:(CGFloat) focusCornerRadius focusInsets:(UIEdgeInsets) focusInsets
  21. {
  22. self = [super init];
  23. if (self) {
  24. _focusRect = rect;
  25. self.focusCornerRadius = focusCornerRadius;
  26. self.focusInsets = focusInsets;
  27. }
  28. return self;
  29. }
  30. @end