fakes.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // fakes.h
  3. // FLEX
  4. //
  5. // Created by Kevin Bradley on 12/22/20.
  6. // Copyright © 2020 Flipboard. All rights reserved.
  7. //
  8. #import "fakes.h"
  9. @implementation UIFakeSwitch
  10. - (void)setOn:(BOOL)on animated:(BOOL)animated {
  11. }
  12. -(instancetype)initWithFrame:(CGRect)frame {
  13. return [super initWithFrame:frame];
  14. }
  15. - (instancetype)initWithCoder:(id)coder {
  16. return [super initWithCoder:coder];
  17. }
  18. @end
  19. @implementation UIFakeSlider
  20. - (void)setValue:(float)value animated:(BOOL)animated {
  21. }
  22. - (void)setThumbImage:(nullable UIImage *)image forState:(UIControlState)state {
  23. }
  24. - (void)setMinimumTrackImage:(nullable UIImage *)image forState:(UIControlState)state {
  25. }
  26. - (void)setMaximumTrackImage:(nullable UIImage *)image forState:(UIControlState)state {
  27. }
  28. - (nullable UIImage *)thumbImageForState:(UIControlState)state {
  29. return nil;
  30. }
  31. - (nullable UIImage *)minimumTrackImageForState:(UIControlState)state {
  32. return nil;
  33. }
  34. - (nullable UIImage *)maximumTrackImageForState:(UIControlState)state {
  35. return nil;
  36. }
  37. - (CGRect)minimumValueImageRectForBounds:(CGRect)bounds {
  38. return CGRectZero;
  39. }
  40. - (CGRect)maximumValueImageRectForBounds:(CGRect)bounds {
  41. return CGRectZero;
  42. }
  43. - (CGRect)trackRectForBounds:(CGRect)bounds {
  44. return CGRectZero;
  45. }
  46. - (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value {
  47. return CGRectZero;
  48. }
  49. @end