- add client custom identifier to save credentials
This commit is contained in:
1 parent
99e06e67db
commit
1629110349
466 files changed
+5976
-26033
No files matched your search
@@ -74,22 +74,22 @@ PL__ASSUME_NONNULL_BEGIN
|
||||
#pragma mark Pin Edges to SafeArea
|
||||
|
||||
/** Pins the given edge of the view to the same edge of its superview anchor/edge. */
|
||||
- (NSLayoutConstraint *)autoPinEdgeToSuperviewSafeArea:(ALEdge)edge;
|
||||
- (NSLayoutConstraint *)API_AVAILABLE(ios(9.0), tvos(9.0))autoPinEdgeToSuperviewSafeArea:(ALEdge)edge;
|
||||
|
||||
/** Pins the given edge of the view to the same edge of its superview anchor/edge with an inset. */
|
||||
- (NSLayoutConstraint *)autoPinEdgeToSuperviewSafeArea:(ALEdge)edge withInset:(CGFloat)inset;
|
||||
- (NSLayoutConstraint *)API_AVAILABLE(ios(9.0), tvos(9.0))autoPinEdgeToSuperviewSafeArea:(ALEdge)edge withInset:(CGFloat)inset;
|
||||
|
||||
/** Pins the given edge of the view to the same edge of its superview anchor/edge with an inset as a maximum or minimum. */
|
||||
- (NSLayoutConstraint *)autoPinEdgeToSuperviewSafeArea:(ALEdge)edge withInset:(CGFloat)inset relation:(NSLayoutRelation)relation;
|
||||
- (NSLayoutConstraint *)API_AVAILABLE(ios(9.0), tvos(9.0))autoPinEdgeToSuperviewSafeArea:(ALEdge)edge withInset:(CGFloat)inset relation:(NSLayoutRelation)relation;
|
||||
|
||||
/** Pins the edges of the view to the edges of its superview anchors/edge. */
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewSafeArea;
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)API_AVAILABLE(ios(9.0), tvos(9.0))autoPinEdgesToSuperviewSafeArea;
|
||||
|
||||
/** Pins the edges of the view to the edges of its superview anchors/edges with the given edge insets. */
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewSafeAreaWithInsets:(ALEdgeInsets)insets;
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)API_AVAILABLE(ios(9.0), tvos(9.0))autoPinEdgesToSuperviewSafeAreaWithInsets:(ALEdgeInsets)insets;
|
||||
|
||||
/** Pins 3 of the 4 edges of the view to the edges of its superview anchor/edge with the given edge insets, excluding one edge. */
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewSafeAreaWithInsets:(ALEdgeInsets)insets excludingEdge:(ALEdge)edge;
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)API_AVAILABLE(ios(9.0), tvos(9.0))autoPinEdgesToSuperviewSafeAreaWithInsets:(ALEdgeInsets)insets excludingEdge:(ALEdge)edge;
|
||||
|
||||
#endif /* TARGET_OS_IPHONE */
|
||||
|
||||
|
||||
@@ -549,7 +549,7 @@
|
||||
*/
|
||||
- (PL__NSArray_of(NSLayoutConstraint *) *)autoPinEdgesToSuperviewMargins
|
||||
{
|
||||
return [self autoPinEdgesToSuperviewMarginsWithInsets:(ALEdgeInsetsZero)];
|
||||
return [self autoPinEdgesToSuperviewMarginsWithInsets:ALEdgeInsetsZero];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Generated
+12
@@ -146,6 +146,18 @@ Additionally, there is one generic attribute type, `ALAttribute`, which is effec
|
||||
### Sample Code (Swift)
|
||||
PureLayout dramatically simplifies writing Auto Layout code. Let's take a quick look at some examples, using PureLayout from Swift.
|
||||
|
||||
Initialize the view using PureLayout initializer:
|
||||
|
||||
```swift
|
||||
let view1 = UIView(forAutoLayout: ())
|
||||
```
|
||||
|
||||
If you need to use a different initializer (e.g. in `UIView` subclass), you can also use `configureForAutoLayout`:
|
||||
|
||||
```
|
||||
view1.configureForAutoLayout() // alternative to UIView.init(forAutoLayout: ())
|
||||
```
|
||||
|
||||
Here's a constraint between two views created (and automatically activated) using PureLayout:
|
||||
|
||||
```swift
|
||||
|
||||
Reference in new issue
Block a user