#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIRegion.h // UIKit // // Copyright © 2015-2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) UIKIT_EXTERN API_AVAILABLE(ios(9.0)) NS_SWIFT_UI_ACTOR @interface UIRegion : NSObject /*! A shared infinite region */ @property(class, nonatomic, readonly) UIRegion *infiniteRegion; /*! Create a circular region with radius */ - (instancetype)initWithRadius:(CGFloat)radius; /*! Create a rectangular region of size. */ - (instancetype)initWithSize:(CGSize)size; /*! Create a new region that is the inverse of the current region. The inverse of the infiniteRegion is an empty region. Subclasses of UIRegion need to provide an implementation of inverseRegion. */ - (instancetype)inverseRegion; /*! Create a new region that is the original region plus the supplied region */ - (instancetype)regionByUnionWithRegion:(UIRegion *)region; /*! Create a new region that is the original region minus the supplied region */ - (instancetype)regionByDifferenceFromRegion:(UIRegion *)region; /*! Create a new region that is the region covered by the original region and the supplied region */ - (instancetype)regionByIntersectionWithRegion:(UIRegion *)region; /*! Test for containment */ - (BOOL)containsPoint:(CGPoint)point; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif