All Projects → kgn → Kgnautolayout

kgn / Kgnautolayout

Licence: mit
Making AutoLayout Easy

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Kgnautolayout

ios ui recipe showcase
iOSアプリ開発 - UI実装であると嬉しいレシピブック掲載サンプル
Stars: ✭ 54 (-57.48%)
Mutual labels:  uikit, autolayout
Driftwood
Driftwood is a DSL to make Auto Layout easy on iOS, tvOS and macOS.
Stars: ✭ 14 (-88.98%)
Mutual labels:  uikit, autolayout
Drawer View
📤 Custom UI component for iOS, replication of Apple's Apple Music player and Shortcuts’ components view [Swift 5.0, iOS 12].
Stars: ✭ 136 (+7.09%)
Mutual labels:  uikit, autolayout
Swiftautolayout
Write constraints in a concise, expressive, Swifty way.
Stars: ✭ 83 (-34.65%)
Mutual labels:  uikit, autolayout
Color Picker For Ios
Colorful: iOS color picker built with Swift.
Stars: ✭ 709 (+458.27%)
Mutual labels:  uikit, autolayout
Uicollectionview Layouts Kit
📐 A set of custom layouts for UICollectionView with examples [Swift 5.3, iOS 12].
Stars: ✭ 410 (+222.83%)
Mutual labels:  uikit, autolayout
StackableTableView
A UITableView subclass that enables setting an array of views for both headers and footers utilizing UIStackView
Stars: ✭ 72 (-43.31%)
Mutual labels:  uikit, autolayout
Markupkit
Declarative UI for iOS and tvOS
Stars: ✭ 508 (+300%)
Mutual labels:  uikit, autolayout
Screenadaptationkit
🎨iOS rapidScreen Compatible AdapterKit(Deprecate)
Stars: ✭ 70 (-44.88%)
Mutual labels:  uikit, autolayout
Basecomponents
BaseComponents aims to provide easily reusable and understandable components to increase productivity with UIKit and Foundation APIs
Stars: ✭ 92 (-27.56%)
Mutual labels:  uikit, autolayout
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+8329.92%)
Mutual labels:  uikit
Elepy
Elepy, The Headless Content Management Framework
Stars: ✭ 109 (-14.17%)
Mutual labels:  uikit
Movieflex ios
iOS application for Movie / Actor information with clean / intuitive UI and MVVM architecture.
Stars: ✭ 119 (-6.3%)
Mutual labels:  uikit
Awesome Tca
Awesome list for The Composable Architecture
Stars: ✭ 124 (-2.36%)
Mutual labels:  uikit
Aiolos
A floating panel for your iOS Apps
Stars: ✭ 1,544 (+1115.75%)
Mutual labels:  uikit
Distancepicker
Custom UIKit control to select a distance with a pan gesture, written in Swift
Stars: ✭ 118 (-7.09%)
Mutual labels:  uikit
Albookcode
Modern Auto Layout Book Sample Code And Solutions
Stars: ✭ 106 (-16.54%)
Mutual labels:  autolayout
Pilot
Cross-platform MVVM in Swift
Stars: ✭ 103 (-18.9%)
Mutual labels:  uikit
Everlayout
Reusable, downloadable, up-datable iOS layouts
Stars: ✭ 103 (-18.9%)
Mutual labels:  autolayout
Uiimageheic
UIImage category that adds familiar HEIC encoding.
Stars: ✭ 125 (-1.57%)
Mutual labels:  uikit

KGNAutoLayout

KGNAutoLayout makes AutoLayout easy!

Swift 3 Release License

Build Status Test Coverage Carthage Compatible CocoaPods Version CocoaPods Platforms

Twitter Follow Star

Installing

Carthage

github "kgn/KGNAutoLayout"

CocoaPods

pod 'KGNAutoLayout'

Examples

Example App

Example App

Pin: Superview

view.pinToEdgesOfSuperview(withOffset: 20)

pinToEdgesOfSuperview_offset20

view.pinToTopEdgeOfSuperview(withOffset: 20)

pinToTopEdgeOfSuperview_offset20

view.pinToRightEdgeOfSuperview(withOffset: 20)

pinToRightEdgeOfSuperview_offset20

view.pinToBottomEdgeOfSuperview(withOffset: 20)

pinToBottomEdgeOfSuperview_offset20

view.pinToLeftEdgeOfSuperview(withOffset: 20)

pinToLeftEdgeOfSuperview_offset20

view.pinToSideEdgesOfSuperview(withOffset: 20)

pinToSideEdgesOfSuperview_offset20

view.pinToTopAndBottomEdgesOfSuperview(withOffset: 20)

pinToTopAndBottomEdgesOfSuperview_offset20

Pin: Edges

view.pinTopEdgeToTopEdge(of: itemView, withOffset: 20)

pinTopEdgeToTopEdgeOfItem_offset20

view.pinRightEdgeToRightEdge(of: itemView, withOffset: 20)

pinRightEdgeToRightEdgeOfItem_offset20

view.pinBottomEdgeToBottomEdge(of: itemView, withOffset: 20)

pinBottomEdgeToBottomEdgeOfItem_offset20

view.pinLeftEdgeToLeftEdge(of: itemView, withOffset: 20)

pinLeftEdgeToLeftEdgeOfItem_offset20

Center

view.centerInSuperview()

centerInSuperview

view.centerHorizontallyInSuperview()

centerHorizontallyInSuperview

view.centerVerticallyInSuperview()

centerVerticallyInSuperview

[view1, view2, view3].centerHorizontally(to: parentView, withSeparation: 20)

centerViewsHorizontally_separation20

[view1, view2, view3].centerVertically(to: parentView, withSeparation: 20)

centerViewsVertically_separation20

view.centerHorizontally(to: itemView)

centerHorizontallyToItem

view.centerVertically(to: itemView)

centerVerticallyToItem

Size

view.size(toWidth: 80)

sizeToWidth80

view.size(toMinWidth: 40)

sizeToMinWidth40

view.size(toMaxWidth: 100)

sizeToMaxWidth100

view.size(toHeight: 80)

sizeToHeight80

view.size(toMinHeight: 40)

sizeToMinHeight40

view.size(toMaxHeight: 100)

sizeToMaxHeight100

view.size(toWidthAndHeight: 80)

sizeToWidthAndHeight80

view.size(toMinWidthAndHeight: 40)

sizeToMinWidthAndHeight40

view.size(toMaxWidthAndHeight: 100)

sizeToMaxWidthAndHeight100

view.sizeWidthToWidth(of: itemView)

sizeWidthToWidthOfItem

view.sizeHeightToHeight(of: itemView)

sizeHeightToHeightOfItem

view.sizeHeightToWidth(of: itemView)

sizeHeightToWidthOfItem

view.sizeWidthToHeight(of: itemView)

sizeWidthToHeightOfItem

view.sizeWidthAndHeightToWidthAndHeight(of: itemView)

sizeWidthAndHeightToWidthAndHeightOfItem

view.sizeHeightToWidth(withAspectRatio: 16/9)

sizeHeightToWidthAspectRatio16by9

view.sizeWidthToHeight(withAspectRatio: 16/9)

sizeWidthToHeightAspectRatio16by9

Position

view.positionAbove(itemView, withOffset: 20)

positionAboveItem_offset20

view.positionToTheRight(of: itemView, withOffset: 20)

positionToTheRightOfItem_offset20

view.positionBelow(itemView, withOffset: 20)

positionBelowItem_offset20

view.positionToTheLeft(of: itemView, withOffset: 20)

positionToTheLeftOfItem_offset20

[view1, view2, view3].positionAbove(itemView, withOffset: 20)

positionViewsAbove_offset20

[view1, view2, view3].positionToTheRight(of: itemView, withOffset: 20)

positionViewsToTheRight_offset20

[view1, view2, view3].positionBelow(itemView, withOffset: 20)

positionViewsBelow_offset20

[view1, view2, view3].positionToTheLeft(of: itemView, withOffset: 20)

positionViewsToTheLeft_offset20

Between

view.fitBetween(top: topView, andBottom: bottomView, withOffset: 20)

fitBetweenTopAndBottomItems_offset20

view.fitBetween(left: leftView, andRight: rightView, withOffset: 20)

fitBetweenLeftAndRightItems_offset20

Fill

parentView.fillHorizontally(withViews: [view1, view2, view3], separation: 20)

fillHorizontally_separation20

parentView.fillVertically(withViews: [view1, view2, view3], separation: 20)

fillVertically_separation20

Bound

itemView.boundHorizontally(withViews: [view1, view2, view3], separation: 20)

boundHorizontally_separation20

itemView.boundVertically(withViews: [view1, view2, view3], separation: 20)

boundVertically_separation20

itemView.boundVertically(withViews: [view1, view2, view3], separation: 20)

boundVertically_separation20

Progress:

  • [X] Travis
  • [X] Badges
  • [X] Tests
  • [X] Carthage
  • [X] CocoaPods
  • [X] Description
  • [X] Documentation
  • [X] Example App
  • [X] AppleTV
  • [X] Prebuilt Frameworks
  • [ ] Travis Test Matrix
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].