UIStackView+Ex.swift 784 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // UIColor+Ex.swift
  3. // KittensTravelNotes
  4. //
  5. // Created by 100Years on 2025/7/6.
  6. //
  7. //extension UIStackView {
  8. // public func addSpacing(length:CGFloat) {
  9. // let view = UIView()
  10. // self.addArrangedSubview(view)
  11. // view.snp.makeConstraints { make in
  12. // if axis == .vertical {
  13. // make.width.equalToSuperview()
  14. // make.height.equalTo(length)
  15. // } else {
  16. // make.width.equalTo(length)
  17. // make.height.equalToSuperview()
  18. // }
  19. // }
  20. // }
  21. //
  22. // static func create(axis:NSLayoutConstraint.Axis = .vertical) -> UIStackView {
  23. // let cusStackView = UIStackView()
  24. // cusStackView.axis = .vertical
  25. // return cusStackView
  26. // }
  27. //
  28. //}