What I'd like to do is is build constraints for a view that is stacked like this if it was built with the Visual Format Language.
"H:|-[title]-[toggle]-|"
What would be the best way to do this using SnapKit?
I'm doing this for now, but it is kind of hard to follow, since the stack setup is strewn across two closures here.
title.snp_makeConstraints { make in
make.left.equalTo(superView)
make.right.equalTo(toggle.left)
}
toggle.snp_makeConstraints { make in
make.right.equalTo(toggle.superView)
}