Search code examples
iosswiftuiviewcosmicmind

Value of type 'UIView' has no member 'layout'


private func prepareContainerView() {
    containerView = UIView()
    view.layout(containerView).edges(top: 100, left: 20, right: 20)
    //The above line is showing error
}

This is from a sample project of CosmicMind Material. I cant seem to run the project as the error is insisting. Please help


Solution

  • The answer is to use version 1.42.9 at least :) All the best!