Join Slack
Powered by
Why is constructor for `NSLayoutConstraint` not av...
# kotlin-native
h
hmole
10/12/2018, 1:16 PM
Why is constructor for
NSLayoutConstraint
not available from generated Kotlin bindings? Anything I'm missing?
s
svyatoslav.scherbina
10/12/2018, 1:31 PM
This Objective-C class seems to have factories instead of constructors. See documentation for more details:
https://developer.apple.com/documentation/uikit/nslayoutconstraint?language=objc
e.g.
https://developer.apple.com/documentation/uikit/nslayoutconstraint/1526944-constraintswithvisualformat?language=objc
👍 1
s
Sam
10/12/2018, 1:50 PM
Also I would suggest using layout anchors to base your constraints off of. They're much simpler to create.
https://developer.apple.com/documentation/uikit/nslayoutanchor?language=objc
2
Views
Open in Slack
Previous
Next