#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIImageView.h // UIKit // // Copyright (c) 2006-2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) @class UIImage, UIImageSymbolConfiguration; UIKIT_EXTERN API_AVAILABLE(ios(2.0)) NS_SWIFT_UI_ACTOR @interface UIImageView : UIView - (instancetype)initWithImage:(nullable UIImage *)image; - (instancetype)initWithImage:(nullable UIImage *)image highlightedImage:(nullable UIImage *)highlightedImage API_AVAILABLE(ios(3.0)); @property (nullable, nonatomic, strong) UIImage *image; // default is nil @property (nullable, nonatomic, strong) UIImage *highlightedImage API_AVAILABLE(ios(3.0)); // default is nil @property (nullable, nonatomic, strong) UIImageSymbolConfiguration* preferredSymbolConfiguration API_AVAILABLE(ios(13.0),tvos(13.0),watchos(6.0)); @property (nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is NO @property (nonatomic, getter=isHighlighted) BOOL highlighted API_AVAILABLE(ios(3.0)); // default is NO // these allow a set of images to be animated. the array may contain multiple copies of the same @property (nullable, nonatomic, copy) NSArray *animationImages; // The array must contain UIImages. Setting hides the single image. default is nil @property (nullable, nonatomic, copy) NSArray *highlightedAnimationImages API_AVAILABLE(ios(3.0)); // The array must contain UIImages. Setting hides the single image. default is nil @property (nonatomic) NSTimeInterval animationDuration; // for one cycle of images. default is number of images * 1/30th of a second (i.e. 30 fps) @property (nonatomic) NSInteger animationRepeatCount; // 0 means infinite (default is 0) // When tintColor is non-nil, any template images set on the image view will be colorized with that color. // The tintColor is inherited through the superview hierarchy. See UIView for more information. @property (null_resettable, nonatomic, strong) UIColor *tintColor API_AVAILABLE(ios(7.0)); - (void)startAnimating; - (void)stopAnimating; @property(nonatomic, readonly, getter=isAnimating) BOOL animating; // if YES, the UIImageView will display a focused appearance when any of its immediate or distant superviews become focused @property (nonatomic) BOOL adjustsImageWhenAncestorFocused UIKIT_AVAILABLE_TVOS_ONLY(9_0); // if adjustsImageWhenAncestorFocused is set, the image view may display its image in a larger frame when focused. // this layout guide can be used to align other elements with the image view's focused frame. @property(readonly,strong) UILayoutGuide *focusedFrameGuide UIKIT_AVAILABLE_TVOS_ONLY(9_0); // the overlayContentView will be placed above the image, automatically resized to fill the image view's frame, and created if necessary when this property is accessed. // You may add your own subviews to this view. // By default, the overlayContentView will clip its children to the image view's frame. Set the overlayContentView's clipsToBounds property to false to allow views to draw outside of the image. // On tvOS, if adjustsImageWhenAncestorFocused is true, the overlayContentView will receive the same floating effects as the image when focused. @property (nonatomic, strong, readonly) UIView *overlayContentView UIKIT_AVAILABLE_TVOS_ONLY(11_0); // if YES, the UIImageView's focused appearance will support transparency in the image. // For example, the shadow will be based on the alpha channel of the image; the highlight will be masked to the image's alpha channel, etc. // This property is only supported for single-layer images, not images will multiple layers like LCRs. // Additionally, the image view must have the same aspect ratio as its image for this property to be effective. // Supporting transparency affects performance, so only set this when needed. @property (nonatomic) BOOL masksFocusEffectToContents UIKIT_AVAILABLE_TVOS_ONLY(11_0); @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif