Swiftpack.co - swiftkits/CoreUIKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swiftkits.
swiftkits/CoreUIKit 0.3.5
Same concepts but less code
⭐️ 0
🕓 1 year ago
iOS
.package(url: "https://github.com/swiftkits/CoreUIKit.git", from: "0.3.5")

CoreUIKit banner image

MIT license CoreUIKit CI workflow Pod Carthage SPM

Welcome to CoreUIKit!

CoreUIKit provides functional and easy to use extensions on top of UIKit. Same concepts but less code!

Installation

Cocoapods

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. Learn More!

pod 'CoreUIKit', '0.3.5'

Swift package manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. Learn More!

dependencies: [
    .package(url: "https://github.com/swiftkits/CoreUIKit.git", .upToNextMajor(from: "0.3.5"))
]

Carthage

A simple, decentralized dependency manager for Cocoa. Learn More!

github "CoreUIKit" ~> 0.3.5

Documentation

Examples

  • How to add a subView on a parentView which has leading trailing top and bottom anchors matching with it's parentView
self.subView
    .add(to: self.parentView)
    .allAnchorsSame(on: self.prarentView)
  • How to add a subView to a parentView with matching only leading anchor
self.subView
    .add(to: self.parentView)
    .leading(of: self.parentView.leadingAnchor)
  • How to add a subView to a parentView on top and leading with margin/space of 10 units and width and height of 120 respectively.
self.subView
    .add(to: self.parentView)
    .top(of: self.parentView.topAnchor)
    .leading(of: self.parentView.leadingAnchor)
    .with(width: 120, height: 120)

Learn

Following are the useful links for learning about autolayout.

Author

Written By Manish Pandey.

GitHub

link
Stars: 0
Last commit: 40 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Version 0.3.5
1 year ago

What's Changed

Full Changelog: https://github.com/swiftkits/CoreUIKit/compare/0.3.4...0.3.5

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics