Skip to content

Instantly share code, notes, and snippets.

View fredlacis's full-sized avatar
🚀

Fred Lacis fredlacis

🚀
View GitHub Profile
@fredlacis
fredlacis / AnalyticsManager.swift
Last active February 5, 2021 21:16
A simple way of organizing your app analytics events.
import Foundation
import Firebase // This can be changed by any other analytics library.
class AnalyticsManager{
/// Unique instance of EventManager (SINGLETON)
static var shared: AnalyticsManager = AnalyticsManager()
// Stored properties
// This is the place where you can add variables that are changed in multiple views to use in your events