mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-10-11 02:49:40 +00:00
chore: remove cephei headers
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
#import "CompactConstraint/CompactConstraint.h"
|
||||
#import "UIColor+HBAdditions.h"
|
||||
@@ -1,7 +0,0 @@
|
||||
//
|
||||
// Created by Marco Arment on 2014-04-06.
|
||||
// Copyright (c) 2014 Marco Arment. See included LICENSE file.
|
||||
//
|
||||
|
||||
#import "NSLayoutConstraint+CompactConstraint.h"
|
||||
#import "UIView+CompactConstraint.h"
|
||||
@@ -1,29 +0,0 @@
|
||||
//
|
||||
// Created by Marco Arment on 2014-04-06.
|
||||
// Copyright (c) 2014 Marco Arment. See included LICENSE file.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
/// NSLayoutConstraint (CompactConstraint), a class category from Marco Arment’s
|
||||
/// [CompactConstraint](https://github.com/marcoarment/CompactConstraint) library, is integrated
|
||||
/// with Cephei. CompactConstraint provides an Auto Layout grammar and methods that are easier to
|
||||
/// use and understand than UIKit’s built in functions for programmatically adding constraints.
|
||||
///
|
||||
/// Refer to [its readme](https://github.com/marcoarment/CompactConstraint/blob/master/README.md) to
|
||||
/// learn how to use it. There are two changes to note: most importantly, the methods have an `hb_`
|
||||
/// prefix, and two methods that are marked as deprecated in the original project have been removed.
|
||||
///
|
||||
/// CompactConstraint is licensed under the MIT License.
|
||||
@interface NSLayoutConstraint (CompactConstraint)
|
||||
|
||||
/// Instantiate a single constraint with the compact syntax.
|
||||
+ (instancetype)hb_compactConstraint:(NSString *)relationship metrics:(NSDictionary <NSString *, NSNumber *> *)metrics views:(NSDictionary <NSString *, UIView *> *)views self:(id)selfView;
|
||||
|
||||
/// Instantiate any number of constraints. Can also mix in Visual Format Language strings.
|
||||
+ (NSArray <NSLayoutConstraint *> *)hb_compactConstraints:(NSArray <NSString *> *)relationshipStrings metrics:(NSDictionary <NSString *, NSNumber *> *)metrics views:(NSDictionary <NSString *, UIView *> *)views self:(id)selfView;
|
||||
|
||||
/// And a convenient shortcut for creating constraints with the visualFormat string as the identifier
|
||||
+ (NSArray <NSLayoutConstraint *> *)hb_identifiedConstraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts metrics:(NSDictionary <NSString *, NSNumber *> *)metrics views:(NSDictionary <NSString *, UIView *> *)views;
|
||||
|
||||
@end
|
||||
@@ -1,79 +0,0 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// UIColor (HBAdditions) is a class category in Cephei that provides some convenience methods.
|
||||
@interface UIColor (HBAdditions)
|
||||
|
||||
/// Creates and returns a color object using data from the specified object.
|
||||
///
|
||||
/// The value is expected to be one of the types specified in hb_initWithPropertyListValue:.
|
||||
///
|
||||
/// @param value The object to retrieve data from. See the discussion for the supported object
|
||||
/// types.
|
||||
/// @return The color object. The color information represented by this object is in the device RGB
|
||||
/// colorspace.
|
||||
/// @see `-hb_initWithPropertyListValue:`
|
||||
+ (instancetype)hb_colorWithPropertyListValue:(id)value NS_SWIFT_NAME(init(propertyListValue:));
|
||||
|
||||
/// Initializes and returns a color object using data from the specified object.
|
||||
///
|
||||
/// The value is expected to be one of:
|
||||
///
|
||||
/// * An array of 3 or 4 integer RGB or RGBA color components, with values between 0 and 255 (e.g.
|
||||
/// `@[ 218, 192, 222 ]`)
|
||||
/// * A CSS-style hex string, with an optional alpha component (e.g. `#DAC0DE` or `#DACODE55`)
|
||||
/// * A short CSS-style hex string, with an optional alpha component (e.g. `#DC0` or `#DC05`)
|
||||
///
|
||||
/// @param value The object to retrieve data from. See the discussion for the supported object
|
||||
/// types.
|
||||
/// @return An initialized color object. The color information represented by this object is in the
|
||||
/// device RGB colorspace.
|
||||
- (instancetype)hb_initWithPropertyListValue:(id)value NS_SWIFT_UNAVAILABLE("Use init(propertyListValue:)");
|
||||
|
||||
/// Initializes and returns a dynamic color object using the provided interface style variants.
|
||||
///
|
||||
/// This color dynamically changes based on the interface style on iOS 13 and newer. If dynamic
|
||||
/// colors are not supported by the operating system, the value for UIUserInterfaceStyleLight or
|
||||
/// UIUserInterfaceStyleUnspecified is returned.
|
||||
///
|
||||
/// Example:
|
||||
///
|
||||
/// ```objc
|
||||
/// UIColor *myColor = [UIColor hb_colorWithInterfaceStyleVariants:@{
|
||||
/// @(UIUserInterfaceStyleLight): [UIColor systemRedColor],
|
||||
/// @(UIUserInterfaceStyleDark): [UIColor systemOrangeColor]
|
||||
/// }];
|
||||
/// ```
|
||||
///
|
||||
/// @param variants A dictionary of interface style keys and UIColor values.
|
||||
/// @return An initialized dynamic color object, or the receiver if dynamic colors are unsupported
|
||||
/// by the current operating system.
|
||||
+ (instancetype)hb_colorWithInterfaceStyleVariants:(NSDictionary <NSNumber *, UIColor *> *)variants;
|
||||
|
||||
/// Initializes and returns a dynamic color object, with saturation decreased by 4% in the dark
|
||||
/// interface style.
|
||||
///
|
||||
/// @return If the color is already a dynamic color, returns the receiver. Otherwise, a new dynamic
|
||||
/// color object.
|
||||
/// @see `+hb_colorWithInterfaceStyleVariants:`
|
||||
- (instancetype)hb_colorWithDarkInterfaceVariant NS_SWIFT_NAME(withDarkInterfaceVariant());
|
||||
|
||||
/// Initializes and returns a dynamic color object, with the specified variant color for the dark
|
||||
/// interface style.
|
||||
///
|
||||
/// Example:
|
||||
///
|
||||
/// ```objc
|
||||
/// UIColor *myColor = [[UIColor systemRedColor] hb_colorWithDarkInterfaceVariant:[UIColor systemOrangeColor]];
|
||||
/// ```
|
||||
///
|
||||
/// @param darkColor The color to use in the dark interface style.
|
||||
/// @return A new dynamic color object.
|
||||
/// @see `-hb_colorWithInterfaceStyleVariants:`
|
||||
- (instancetype)hb_colorWithDarkInterfaceVariant:(UIColor *)darkColor NS_SWIFT_NAME(withDarkInterfaceVariant(_:));
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -1,29 +0,0 @@
|
||||
//
|
||||
// Created by Marco Arment on 2014-04-06.
|
||||
// Copyright (c) 2014 Marco Arment. See included LICENSE file.
|
||||
//
|
||||
|
||||
#import "NSLayoutConstraint+CompactConstraint.h"
|
||||
|
||||
/// UIView (CompactConstraint), a class category from Marco Arment’s
|
||||
/// [CompactConstraint](https://github.com/marcoarment/CompactConstraint) library, is integrated
|
||||
/// with Cephei. CompactConstraint provides an Auto Layout grammar and methods that are easier to
|
||||
/// use and understand than UIKit’s built in functions for programmatically adding constraints.
|
||||
///
|
||||
/// Refer to [its readme](https://github.com/marcoarment/CompactConstraint/blob/master/README.md) to
|
||||
/// learn how to use it. There are two changes to note: most importantly, the methods have an `hb_`
|
||||
/// prefix, and two methods that are marked as deprecated in the original project have been removed.
|
||||
///
|
||||
/// CompactConstraint is licensed under the MIT License.
|
||||
@interface UIView (CompactConstraint)
|
||||
|
||||
/// Add a single constraint with the compact syntax.
|
||||
- (NSLayoutConstraint *)hb_addCompactConstraint:(NSString *)relationship metrics:(NSDictionary <NSString *, NSNumber *> *)metrics views:(NSDictionary <NSString *, UIView *> *)views;
|
||||
|
||||
/// Add any number of constraints. Can also mix in Visual Format Language strings.
|
||||
- (NSArray <NSLayoutConstraint *> *)hb_addCompactConstraints:(NSArray <NSString *> *)relationshipStrings metrics:(NSDictionary <NSString *, NSNumber *> *)metrics views:(NSDictionary <NSString *, UIView *> *)views;
|
||||
|
||||
/// And a convenient shortcut for what we always end up doing with the visualFormat call.
|
||||
- (void)hb_addConstraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts metrics:(NSDictionary <NSString *, NSNumber *> *)metrics views:(NSDictionary <NSString *, UIView *> *)views;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user