Swiftpack.co -  frankenly/JetpackKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
frankenly/JetpackKit
JetpackKit
.package(url: "https://github.com/frankenly/JetpackKit.git", from: "1.0.2")

JetpackKit

A description of this package.

JetpackKitUtil

Using in UIView extension jpk


    // using
    UIView.jpk.anchor()

    // set center
    UIView.jpk.centerX(with: UIViewTarget)
    UIView.jpk.centerY(with: UIViewTarget)

    // call get constrant
    UIView.jpk.constrants.top.constant = 0
    UIView.jpk.constrants.bottom.constant = 0
    UIView.jpk.constrants.left.constant = 0
    UIView.jpk.constrants.right.constant = 0

Debug

How to use ?

    
    // using 
    JPKDebug.print("Subject", msg: "Detail", mode: .LOG)

    // disable - enable
    JPKConfigure.isDebug = false
  • mode
    • .LOG is white icon
    • .ERROR is red icon
    • .SUCCESS is green icon

Version Log

  • 1.0.2
    • NSLayoutXAxisAnchor, NSLayoutYAxisAnchor clear data, if getConstrant()
  • 1.0.1
    • JetpackKitUtils class in UIView
      • Set anchor
      • Update anchor
      • Set Center x,y
      • add extension in uiview (jpk)
      • add extension in X,Y Constrant view.
  • 1.0.0
    • JPKDebug class debug mode can print
    • JPKConfigure can set enable debug mode
    • init project + structure

GitHub

link
Stars: 1
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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