FWLayoutChain


@interface FWLayoutChain : NSObject

视图链式布局类

Note

如果约束条件完全相同,会自动更新约束而不是重新添加。 另外,默认布局方式使用LTR,如果需要RTL布局,可通过fwAutoLayoutRTL统一启用
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable, readonly) UIView *view
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithView:(UIView *)view;

Install

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^remake
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^autoScale

Compression

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^compressionHorizontal
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^compressionVertical
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^huggingHorizontal
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^huggingVertical

Collapse

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^collapsed
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^autoCollapse
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^hiddenCollapse

Axis

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^center
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerX
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerY
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerXWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerYWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerXToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerYToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerXToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerYToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerXToViewWithMultiplier
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerYToViewWithMultiplier

Edge

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^edges
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^edgesWithInsets
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^edgesWithInsetsExcludingEdge
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^horizontal
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^vertical
  • top

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^top
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottom
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^left
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^right
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topToViewBottom
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomToViewTop
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftToViewRight
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightToViewLeft
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topToViewBottomWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomToViewTopWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftToViewRightWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightToViewLeftWithOffset

SafeArea

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerXToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerYToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerToSafeAreaWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerXToSafeAreaWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^centerYToSafeAreaWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^edgesToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^edgesToSafeAreaWithInsets
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^edgesToSafeAreaWithInsetsExcludingEdge
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^horizontalToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^verticalToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^topToSafeAreaWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^bottomToSafeAreaWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^leftToSafeAreaWithInset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^rightToSafeAreaWithInset

Dimension

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^size
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^width
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^height
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^widthToHeight
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^heightToWidth
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^sizeToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^widthToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^heightToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^widthToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^heightToViewWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^widthToViewWithMultiplier
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^heightToViewWithMultiplier

Attribute

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^attribute
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^attributeWithOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^attributeWithOffsetAndRelation
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^attributeWithMultiplier
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^attributeWithMultiplierAndRelation

Constraint

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^offset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^inset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^priority
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^identifier
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^active
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) FWLayoutChain * (^remove
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<NSLayoutConstraint *> *constraints
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nullable, readonly) NSLayoutConstraint *constraint
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToSuperview
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToSuperviewWithRelation
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToSafeArea
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToSafeAreaWithRelation
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToView
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToViewWithRelation
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToViewWithMultiplier
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintToViewWithMultiplierAndRelation
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSLayoutConstraint * _Nullable (^constraintWithIdentifier