Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/Cosmo/TinyConsole
console events helper ios log tool
Last synced: 3 days ago
JSON representation
π±π¬π¦ 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.
- Host: GitHub
- URL: https://github.com/Cosmo/TinyConsole
- Owner: Cosmo
- License: mit
- Created: 2016-11-28T15:42:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T21:37:45.000Z (about 5 years ago)
- Last Synced: 2024-12-01T11:53:24.852Z (11 days ago)
- Topics: console, events, helper, ios, log, tool
- Language: Swift
- Homepage:
- Size: 1.05 MB
- Stars: 1,949
- Watchers: 30
- Forks: 89
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - TinyConsole - A tiny log console to display information while using your iOS app. (Logging / Other Hardware)
- awesome-swift - TinyConsole - A tiny log console to display information while using your iOS app. (Libs / Logging)
- awesome-swift - TinyConsole - A tiny log console to display information while using your iOS app. (Libs / Logging)
- awesome-ios-star - TinyConsole - A tiny log console to display information while using your iOS app. (Logging / Other Hardware)
- fucking-awesome-swift - TinyConsole - A tiny log console to display information while using your iOS app. (Libs / Logging)
- awesome-swift - 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. ` π 2 years ago ` (Logging [π](#readme))
README
# TinyConsole
TinyConsole is a tiny log console to display information while using your iOS app and written in Swift.
## Usage
Wrap your Main ViewController inside of a `TinyConsoleController` like so:
```swift
TinyConsole.createViewController(rootViewController: MyMainViewController())
```### Actions
#### Hide and Show
Shake your device to toggle the console.
If youβre using the Simulator, press β ctrl-β cmd-z.#### Console output
```swift
// Print message
TinyConsole.print("hello")// Print messages any color you want
TinyConsole.print("green text", color: UIColor.green)// Print a red error message
TinyConsole.error("something went wrong")// Print a marker for orientation
TinyConsole.addLine()// Clear console
TinyConsole.clear()
```## Implementation Example
Instead of
```swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = MyMainViewController()
window?.makeKeyAndVisible()
return true
}
```write
```swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = TinyConsole.createViewController(rootViewController: MyMainViewController())
window?.makeKeyAndVisible()
return true
}
```alternatively, check out the example project included in this repository.
## Demo
## Requirements
* Xcode 11
* Swift 5
* iOS 11 or greater## Installation
### [Carthage](https://github.com/Carthage/Carthage)
Add this to your Cartfile:
```ruby
github "Cosmo/TinyConsole"
```### Manually
Just drag the source files into your project.
## Hierarchy
## Core Team
- [@Cosmo](https://github.com/Cosmo), Devran "Cosmo" Uenal
- [@mRs-](https://github.com/mRs-), Marius Landwehr
- [@ohitsdaniel](https://github.com/ohitsdaniel), Daniel Peter## Thanks
Many thanks to [**the contributors**](https://github.com/Cosmo/TinyConsole/graphs/contributors) of this project.
## Contact
* Devran "Cosmo" Uenal
* Twitter: [@maccosmo](http://twitter.com/maccosmo)
* LinkedIn: [devranuenal](https://www.linkedin.com/in/devranuenal)## Other Projects
* [BinaryKit](https://github.com/Cosmo/BinaryKit) β BinaryKit helps you to break down binary data into bits and bytes and easily access specific parts.
* [Clippy](https://github.com/Cosmo/Clippy) β Clippy from Microsoft Office is back and runs on macOS! Written in Swift.
* [GrammaticalNumber](https://github.com/Cosmo/GrammaticalNumber) β Turns singular words to the plural and vice-versa in Swift.
* [HackMan](https://github.com/Cosmo/HackMan) β Stop writing boilerplate code yourself. Let hackman do it for you via the command line.
* [ISO8859](https://github.com/Cosmo/ISO8859) β Convert ISO8859 1-16 Encoded Text to String in Swift. Supports iOS, tvOS, watchOS and macOS.
* [SpriteMap](https://github.com/Cosmo/SpriteMap) β SpriteMap helps you to extract sprites out of a sprite map. Written in Swift.
* [StringCase](https://github.com/Cosmo/StringCase) β Converts String to lowerCamelCase, UpperCamelCase and snake_case. Tested and written in Swift.## License
TinyConsole is released under the [MIT License](http://www.opensource.org/licenses/MIT).