Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yhkaplan/difflog
https://github.com/yhkaplan/difflog
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yhkaplan/difflog
- Owner: yhkaplan
- License: mit
- Created: 2021-08-24T11:03:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T11:06:22.000Z (over 3 years ago)
- Last Synced: 2024-11-06T05:42:20.803Z (3 months ago)
- Language: Swift
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ✅ DiffLog
Easy print-debugging
```swift
import DiffLogclass ViewController: UIViewController {
@DiffLog private var didLoad = falsefunc viewDidLoad() {
super.viewDidLoad()didLoad = true
}
}
//- false
//+ true
```Compound data types like structs, enum, and classes also work.
```diff
Person(
name: nil,
- email: nil,
+ email: "[email protected]",
id: UUID(D6946807-70DA-421B-B448-95D0D94B246E)
)
```