Swiftpack.co - Package - johnpatrickmorgan/wtfautolayout

WTF Auto Layout?

Swift Vapor

This is the code driving www.wtfautolayout.com, which parses error logs from Auto Layout on iOS and macOS and provides more intuitive visual descriptions of the conflicting constraints. It was built using Swift, Vapor and Sparse.

After installing Vapor, run vapor xcode to generate an xcode project. The Run target will serve the site locally at localhost:8080.


Stars: 911

Used By

Total: 0


V1.3.4 - 2020-01-13 09:47:00

927221b Updates test snapshots, fixes failed test a842ef5 Updates Hashable conformance a98eb89 Ensures & and = are percent encoded in log query argument (#19)

V1.3.3 - 2019-11-07 21:19:24

958e500 Updates Swift version to 5.1 11ae363 Adds $ to valid classNameCharacters (fixes #18) 05d8579 Updates swift-tools-version and dependencies

V1.3.2 - 2019-03-12 23:24:12

b750462 Allows any character except # for file names in SnapKit constraint descriptions (#16)

V1.3.1 - 2019-02-12 10:22:52

298d39b Corrects trimming of log suffixes

v1.3.0 - 2019-01-24 23:45:41

c00bec4 Sets swift version to 4.2 5f93483 Updates test snapshots f1b70da Ensures parser output is deterministic cddeea0 Renames txt files to json for latest SnapshotTesting 377f819 Ensures InvalidConstraintError's description is called fabebe6 Updates for latest Sparse version 1268a43 Updates dependencies e1a779a Updates tests for latest SnapshotTesting e6fbca5 Switches to using the input's length rather than hashValue for seeding random colors

v1.2.4 - 2018-12-24 11:54:34

bf67a47 Adds correct parsing of NSSpace in equation constraints (#13) 39dbcb9 Adds a failing test for NSSpace after an equation constraint c2c3b93 Corrects custom input 8

v1.2.3 - 2018-12-04 23:39:51

f12327a Avoids application crash with duplicate keys in info dictionary (#12) 953bf14 Adds failing test for duplicate info keys 7a5b5f9 Adds a file to collect parsing errors from anonymised server logs 434384d Updates snapshots to capture correct footnote rendering

v1.2.2 - 2018-11-01 22:54:56

118c183 Ensures footnote text is treated as raw html (#11) fda15af Updates README version badges

v1.2.1 - 2018-10-26 22:33:30

073ab9c Adds support for spacers labelled NSLayoutAnchorConstraintSpace (#10) e0eeb5e Adds failing test for NSLayoutAnchorConstraintSpace

v1.2.0 - 2018-10-26 22:12:09

77d5839 Moves test inputs and adds missing test to LinuxMain 55204f0 Updates Procfile for Vapor 3 6a6eed4 Switches to using random for Crypto 1692817 Stops percent encoding legal query argument characters 1223240 Makes code style changes 6bac94b Adds snapshot tests ea2840d Refactors to use multi-line string literals wherever useful 4cdd046 Code refactoring and cleanup for Swift 4 03047ad Removes workarounds for Swift on Linux bugs 05160b4 Upgrades to Swift 4 7164da9 Upgrades to Vapor 3 8e97478 Reduces font-size of input textarea

v1.1.5 - 2017-09-23 20:35:22

823cdf9 Adds environment variable to support both production and staging 1fd25ea Rewrites a line that crashes on Linux due to https://bugs.swift.org/browse/SR-4922 daf3860 Ensures order of layoutItems is preserved in Annotation's uniquingSuffix 285bc7c Simplifies output view by conforming both known errors to a shared protocol 08de69b Reconfigures colour palette

v1.1.4 - 2017-09-13 22:22:42

835b30b Adds wrap="off" to textarea to prevent wrapping cb67417 Adds support for alternative spellings of margined attributes (#5)

v1.1.3 - 2017-09-12 22:39:47

b90ea63 Amends descriptions of baseline attributes for ease of reading f54fdf5 Adds language attribute to html tag 28d7c01 Adds support for 4 new attributes, and a margin indicator (#4)

v1.1.2 - 2017-09-10 21:53:01

e8543dd Moves trimming of log affixes before parsing, so that trimmed input is displayed on error

v1.1.1 - 2017-09-10 21:19:05

620a5ff Displays identifier instead of class name if one exists 1995071 Gives parsers names to improve error messages cad0806 Fixes typo 18cebb1 Fixes incorrect favicon image names

v1.1.0 - 2017-09-02 21:58:39

d69f64f Removes padding from pictorial 3608cb0 Shortens prefixEnd1 cfc5857 Moves input sanitizing to ConstraintsParser 1b3cdd1 Increases line spacing of constraint descriptions 473ec5f Trims UI from class names rather than simplifying the class name 6dff882 Corrects parsing of VFL space constraints 294e9e2 Adds extra examples 9f189ed Prints multipliers with 3 maximumFractionDigits c8efea8 Allows postfix multipliers (#2) a8fd0b2 Adds failing test for postfix multipliers (#2) 9f0ba96 Ensures affixes are trimmed from the logs 6a73212 Ensures permalink uses a fully trimmed input (including "\r\n") and is not shown for permalink themselves (#3) 29ba556 Adds items to TODO.md

v1.0.1 - 2017-08-29 22:26:40

3d04fe8 Renames proseDescription to htmlDescription 76040e3 Adds code style, retags about bumf as a div 247721e Adds code markup to footnote text 8e4f271 Uppercases the identifying initial and ensures it is alphanumeric 3246764 Adds support for accessibility identifiers that include space characters (#1) 7415fc5 Prevents description duplicating "minus and minus sign

v1.0.0 - 2017-08-29 20:48:59

Initial release.