Skip to content

Instantly share code, notes, and snippets.

View iamazhar's full-sized avatar
🤖
The world deserves secure, on-device AI

Azhar Anwar iamazhar

🤖
The world deserves secure, on-device AI
View GitHub Profile
@iamazhar
iamazhar / Logger.swift
Created October 12, 2022 10:08
Logger wrapper on print statement
import Foundation
public enum LoggerLevel {
case info
case debug
case warning
case error
}
final class Logger {
@iamazhar
iamazhar / UserDefaultsHelper.swift
Created October 12, 2022 09:59
User Defaults helper with generics
import Foundation
public final class UserDefaultsHelper {
/// Use this generic func to encode and save an Codable object to UserDefaults
/// - Parameters:
/// - value: Any Codable type
/// - key: The corresponding key
/// - Returns: true if it is saved successfully, else false
@discardableResult
@dsoike
dsoike / MyTabBarController.swift
Last active March 7, 2023 07:57
Swift UITabBarController with Custom Transition Animation
import UIKit
class MyTabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
delegate = self
}
}
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 12, 2026 19:44
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites