Here is the looks and feel of your terminal once the tutorial has been applied on your system:
Using Homebrew:
import UIKit | |
extension UIApplication { | |
private struct AssociatedObjectsKeys { | |
static var visibleViewControllersPointers = "UIApplication_visibleViewControllersPointers" | |
} | |
fileprivate var visibleViewControllersPointers: NSPointerArray { | |
var pointers = objc_getAssociatedObject(self, &AssociatedObjectsKeys.visibleViewControllersPointers) as! NSPointerArray? |
extension String { | |
init<T>(dumping x: T) { | |
self.init() | |
dump(x, to: &self) | |
} | |
} | |
func assertDumpsEqual<T>(_ lhs: @autoclosure () -> T, _ rhs: @autoclosure () -> T, file: StaticString = #file, line: UInt = #line) { | |
assert(String(dumping: lhs()) == String(dumping: rhs()), "Expected dumps to be equal.", file: file, line: line) | |
} |
Here is the looks and feel of your terminal once the tutorial has been applied on your system:
Using Homebrew: