Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Container enhancements #13

Closed
Otbivnoe opened this issue Feb 2, 2018 · 0 comments
Closed

Container enhancements #13

Otbivnoe opened this issue Feb 2, 2018 · 0 comments
Assignees

Comments

@Otbivnoe
Copy link
Owner

Otbivnoe commented Feb 2, 2018

Added a special container relation:

enum ContainerRelation {
    case width(Number)
    case height(Number)
    case horizontal(left: Number, right: Number)
    case vertical(top: Number, bottom: Number)
}

if you set a width relation for a container, only a height will be calculated dynamically.

Also, there's a new method, that uses an already configured container:

func configure(container: UIView, relation: ContainerRelation?, installerBlock: () -> Void) {}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant