Cosmo / TinyConsole

📱💬🚦 TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible.
MIT License
1.95k stars 89 forks source link

Pretty Printing with Formatted Strings #7

Closed ohitsdaniel closed 7 years ago

ohitsdaniel commented 7 years ago

Implemented the functionality to use formatted strings to print to TinyConsole.

Also added a error(_:String) function which prints fancy red text.

ohitsdaniel commented 7 years ago

Closes #6

ohitsdaniel commented 7 years ago

There is now a static textAppearance attribute. This uses a standard dictionary, setting the font to Menlo 12 and the font color to white.

Using this attribute, you change the standard appearance of the console output.

Do you think textAppearance is a proper variable name? 🤔

jyounus commented 7 years ago

I'd probably call it "textAttributes", it's just closer to what it actually is, a dictionary of attributes.

But either are fine to be honest.

Cosmo commented 7 years ago

Looks good from here! Great work! 🚀 🎉