| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // fakes.h
- // FLEX
- //
- // Created by Kevin Bradley on 12/22/20.
- // Copyright © 2020 Flipboard. All rights reserved.
- //
- #import "fakes.h"
- @implementation UIFakeSwitch
- - (void)setOn:(BOOL)on animated:(BOOL)animated {
-
- }
- -(instancetype)initWithFrame:(CGRect)frame {
- return [super initWithFrame:frame];
- }
- - (instancetype)initWithCoder:(id)coder {
- return [super initWithCoder:coder];
- }
- @end
- @implementation UIFakeSlider
- - (void)setValue:(float)value animated:(BOOL)animated {
-
- }
- - (void)setThumbImage:(nullable UIImage *)image forState:(UIControlState)state {
-
- }
- - (void)setMinimumTrackImage:(nullable UIImage *)image forState:(UIControlState)state {
-
- }
- - (void)setMaximumTrackImage:(nullable UIImage *)image forState:(UIControlState)state {
-
- }
- - (nullable UIImage *)thumbImageForState:(UIControlState)state {
- return nil;
- }
- - (nullable UIImage *)minimumTrackImageForState:(UIControlState)state {
- return nil;
- }
- - (nullable UIImage *)maximumTrackImageForState:(UIControlState)state {
- return nil;
- }
- - (CGRect)minimumValueImageRectForBounds:(CGRect)bounds {
- return CGRectZero;
- }
- - (CGRect)maximumValueImageRectForBounds:(CGRect)bounds {
- return CGRectZero;
- }
- - (CGRect)trackRectForBounds:(CGRect)bounds {
- return CGRectZero;
- }
- - (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value {
- return CGRectZero;
- }
- @end
|