Skip to content

Instantly share code, notes, and snippets.

View aralshawa's full-sized avatar

Abdul aralshawa

View GitHub Profile
@aralshawa
aralshawa / Setup.md
Last active December 6, 2024 03:05
A set of reminders for when I set up a new computer for personal development use.
@aralshawa
aralshawa / ViewControllerDeallocationChecker.swift
Last active March 10, 2019 20:29
A simple mechanism to check for leaky VCs.
// LeakyViewControllerChecker.swift
// Devised by: Arek Holko
// Blog Post: http://holko.pl/2017/06/26/checking-uiviewcontroller-deallocation
extension UIViewController {
/// This method asserts whether a view controller gets deallocated after it disappeared due to one of these reasons:
/// - it was removed from its parent, or
/// - it (or one of its parents) was dismissed.
///