目录
目录README.md

DStack

  • DSTabsViewController
  • Extensions for working with constraints

DSTabsViewController

class TabsViewController: DSTabsViewController<HeaderView> {

 init() {
  super.init(viewControllers: [
   UIViewController(),
   UIViewController()
  ])
 }

 required
 init?(coder aDecoder: NSCoder) {
  fatalError('init(coder:) has not been implemented')
 }

}

Demo (Click for watching)

Watch the Demo

Extensions for working with constraints

let stackView = UIStackView()
 .addInRootView(view)
 .setTopAnchor(anchor: topLayoutGuide.bottomAnchor, marge: 10)
 .setRightAnchor(anchor: view.rightAnchor, marge: 10)
 .setBottomAnchor(anchor: bottomLayoutGuide.topAnchor, marge: 10)
 .setLeftAnchor(anchor: view.leftAnchor, marge: 10)

let side: CGFloat = 70

label1.addInRootView(stackView)
 .setSize(width: side, height: side)
 .setTopAlignment()
 .setCenterX()

Demo

ScreenShotPortrait

关于
40.1 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号