Home

Awesome

Swift 5.2 Cocoapods Carthage Swift Package Manager

Gedatsu

Gedatsu

Gedatsu provide readable format about AutoLayout error console log

Abstract

At runtime Gedatsu hooks console log and formats it to human readable about AutoLayout ambiguous constraints.

OriginalGedatsu
<img width="100%" src="https://github.com/bannzai/Gedatsu/blob/master/docs/autolayout.png" /><img width="100%" src="https://github.com/bannzai/Gedatsu/blob/master/docs/gedatsu.png" />

Install

Cocoapods

Add the line below to Podfile and execute $ pod install.

pod 'Gedatsu', configuration: %w(Debug)

Carthage

Add the line below to Cartfile and execute any $ carthage checkout && carthage build commands.
e.g.) $ carthage bootstrap --platform iOS.

github "bannzai/Gedatsu"

Swift Package Manager

Gedatsu supports to install via Swift Package Manager. You can add Gedatsu on Xcode GUI. See document.

Usage

Gedatsu will start when after call Gedatsu.open. As an good example for iOS project, call Gedatsu.open when AppDelegate.application:didFinishLaunchingWithOptions:.

#if DEBUG
import Gedatsu
#endif

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    #if DEBUG
    Gedatsu.open()
    #endif
    return true
}

Support Versions

platformversion
iOS>= 11.0
macOS>= 10.11
Swift>= 5.2

LICENSE

Gedatsu is released under the MIT license. See LICENSE for details.
Header logo is released CC BY-NC 4.0 license. Original design by noainoue.