// // FHSSnapshotView.h // FLEX // // Created by Tanner Bennett on 1/7/20. // Copyright © 2020 FLEX Team. All rights reserved. // #import "FHSViewSnapshot.h" #import "FHSRangeSlider.h" #import "fakes.h" NS_ASSUME_NONNULL_BEGIN @protocol FHSSnapshotViewDelegate - (void)didSelectView:(FHSViewSnapshot *)snapshot; - (void)didDeselectView:(FHSViewSnapshot *)snapshot; - (void)didLongPressView:(FHSViewSnapshot *)snapshot; @end @interface FHSSnapshotView : UIView + (instancetype)delegate:(id)delegate; @property (nonatomic, weak) id delegate; @property (nonatomic) NSArray *snapshots; @property (nonatomic, nullable) FHSViewSnapshot *selectedView; /// Views of these classes will have their headers hidden @property (nonatomic) NSArray *headerExclusions; @property (nonatomic, readonly) FHSRangeSlider *depthSlider; //this is a UIControl, it wont work OOB on tvOS but the snapshot viewer isnt working on tvOS anyway, moot for now. #if !TARGET_OS_TV @property (nonatomic, readonly) UISlider *spacingSlider; #else @property (nonatomic, readonly) KBSlider *spacingSlider; #endif - (void)emphasizeViews:(NSArray *)emphasizedViews; - (void)toggleShowHeaders; - (void)toggleShowBorders; - (void)hideView:(FHSViewSnapshot *)view; @end NS_ASSUME_NONNULL_END