Last active
July 6, 2020 06:43
-
-
Save RustemAqtau/ff08dddb398a55fd01a7c2e68e73b791 to your computer and use it in GitHub Desktop.
Form view extension(for combining two or more elements to one view)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
private func setupConstraints() { | |
let googleView = ButtonFormView(label: googleLabel, button: googleButton) | |
let googleView2 = ButtonFormView(label: googleLabel, button: googleButton) | |
let googleView3 = ButtonFormView(label: googleLabel, button: googleButton) | |
let stackView = UIStackView(arrangeSubviews: [googleView, googleView2, googleview3]) | |
stackView.translateAutoresizingMask = false | |
stackView.axis = .vertical | |
stackView.spacing = 40 | |
view.addSubview(stackView) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment