Swift Package Index



  • The latest stable release is 0.4.2. Released 2 months ago.
  • The last commit to master was 2 months ago.

Swift Version Compatibility

  • 0.4.2 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.4.2 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

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