Giter Club home page Giter Club logo

gedatsu's Introduction

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.

Original Gedatsu

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

platform version
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.

gedatsu's People

Contributors

bannzai avatar elonpark avatar fromkk avatar michi1129 avatar nerd0geek1 avatar nnsnodnb avatar yakkun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gedatsu's Issues

Gedatsu crashes if the view whose translatesAutoresizingMaskIntoConstraints property is true is in the ambiguous view tree.

Below code, maybe you can reproduce the crash. I tried to test in iOS 12.2 and 13.5.
In the lldb, po self.rawValue is 35.

スクリーンショット 2020-06-05 15 57 22

It does not crash if translatesAutoresizingMaskIntoConstraints property of footerButton and footerView is false.

class ViewController: UITableViewController {
    let footerButton: UIButton = {
        let button = UIButton()
        button.setTitle("Button Label", for: .normal)
        return button
    }()
    lazy var footerView: UIView = {
        let view = UIView()
        view.addSubview(self.footerButton)
        NSLayoutConstraint.activate([
            footerButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
            footerButton.centerYAnchor.constraint(equalTo: view.centerYAnchor),
            footerButton.topAnchor.constraint(equalTo: view.topAnchor, constant: 32)
        ])
        return view
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        tableView.tableFooterView = footerView
    }
}

Can't install Gedatsu through Carthage

I try to install Gedatsu through Carthage, but I can't install.

Here are the commands at runtime.

$ carthage update --platform iOS Gedatsu
Dependency "Gedatsu" has no shared framework schemes for any of the platforms: iOS

This is probably due to Gedatsu-Carthage.xcodeproj.

macOS support?

Thanks for a great tool. Is there any chance to see that for macOS?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.