Add some UI customization options#384
Add some UI customization options#384cederache wants to merge 10 commits intoOrderella:developmentfrom
Conversation
cederache
commented
Feb 7, 2024
- Add corner curve option to ContainerView
- Add custom spacing between buttons
- Add horizontal space between buttons and container
- Add separator between buttons and content view
Added SPM as install option
|
|
||
| .target( | ||
| name: "PopupDialog", | ||
| dependencies:[ |
There was a problem hiding this comment.
Colon Violation: Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. (colon)
| ]) | ||
| return containerView | ||
| }() | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
| buttonStackView.spacing = 0 | ||
| return buttonStackView | ||
| }() | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
| separator.backgroundColor = newValue | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
| buttonStackContainerView.constraints.filter { $0.firstAttribute == .leading }.first?.constant = newValue | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
|
|
||
| /// The spacing between buttons and the container view | ||
| @objc public dynamic var buttonsContainerSpacing: CGFloat { | ||
| get { return buttonStackContainerView.constraints.filter { $0.firstAttribute == .leading }.first?.constant ?? 0 } |
There was a problem hiding this comment.
Line Length Violation: Line should be 120 characters or less: currently 121 characters (line_length)
| buttonStackView.spacing = newValue | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
| container.layer.cornerCurve = newValue | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)