Stevia: Human-readable auto-layout in code
1–10 of 60 posts
Re: Stevia: Human-readable auto-layout in code
#2But I can say from a beginner to iOS standpoint that this looks amazing and I will put it to use in an app I am building immediately, as soon as I can figure out how.
To the author of this library, thank you.
Re: Stevia: Human-readable auto-layout in code
#3Re: Stevia: Human-readable auto-layout in code
#4I experimented with this a little in a game I was working on. You just need a standard way of displaying everything, then automatically generate the UIs.
Re: Stevia: Human-readable auto-layout in code
#5Programmatic layouts/constraints just crumble underneath you when Apple decides to make changes in each new version of iOS or introduces a new formfactor.
Re: Stevia: Human-readable auto-layout in code
#6Re: Stevia: Human-readable auto-layout in code
#7https://github.com/SnapKit/SnapKit
box.snp_makeConstraints { (make) -> Void in
make.width.height.equalTo(50)
make.center.equalTo(self.view)
}Re: Stevia: Human-readable auto-layout in code
#8I find it strange that something akin to markdown-style syntax sugar is more user-friendly than a visual designer. Do the tools for developing a UI for iOS this way not include a WYSIWYG editor to set things such as contraints?
Re: Stevia: Human-readable auto-layout in code
#9I find it strange that something akin to markdown-style syntax sugar is more user-friendly than a visual designer. Do the tools for developing a UI for iOS this way not include a WYSIWYG editor to set things such as contraints?
Re: Stevia: Human-readable auto-layout in code
#10I find it strange that something akin to markdown-style syntax sugar is more user-friendly than a visual designer. Do the tools for developing a UI for iOS this way not include a WYSIWYG editor to set things such as contraints?
And of course, some people find markdown more user-friendly than a visual GUI for more or less the same reasons, so it should not be that surprising to find some people experiment with this.
And of course, autolayout has a text-based language of its own (https://developer.apple.com/library/ios/documentation/UserEx...)