We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
override func viewDidLoad() { super.viewDidLoad() let S = TGRelativeLayout() let A = UILabel() let B = UILabel() S.tg_width.equal(300).and().tg_height.equal(300) S.backgroundColor = .yellow A.text = "Hello world" A.backgroundColor = .blue A.tg_left.equal(0) A.tg_top.equal(0) A.tg_height.equal(40) A.tg_right.equal(B.tg_left).offset(10) B.text = "Hello world2" B.backgroundColor = .red B.tg_right.equal(0) B.tg_top.equal(0) B.tg_width.equal(.wrap) B.tg_height.equal(40) S.addSubview(A) S.addSubview(B) view.addSubview(S) }
我设置了相同的高度了
A.tg_height.equal(40) B.tg_height.equal(40)
The text was updated successfully, but these errors were encountered:
谢谢你的问题,我已经修复了这个BUG了。这个BUG是因为以前认为宽度是wrap高度是特定值是不可能的情况!!其实是有可能的。您可以下载最新的git代码。。后续我会在版本升级中加上changelog.
Sorry, something went wrong.
Release V1.0.3: add function and fix bug #7
fb50115
No branches or pull requests
我设置了相同的高度了
The text was updated successfully, but these errors were encountered: