Skip to content

Instantly share code, notes, and snippets.

View Gonzalo-MR8's full-sized avatar
💻
Programming

GonzaloMR Gonzalo-MR8

💻
Programming
View GitHub Profile
@Gonzalo-MR8
Gonzalo-MR8 / CustomNavigationController.swift
Last active April 27, 2023 11:55
This is a custom UINavigationController to manage navigation between each ViewController, it will be used only to navigate with UIKit and work with .xib and not with .storyboard. To know how to use it you can go to see how I use it in the InfoSpace project, which is in my github account. If you have any questions about how to use it, ask away!
//
// CustomNavigationController.swift
//
// Created by GonzaloMR
//
import UIKit
import SafariServices
final class CustomNavigationController: UINavigationController {
@jayesh15111988
jayesh15111988 / ImageDownloader.swift
Created April 26, 2020 21:37
A gist for image downloader and caching library written in Swift for iOS applications
import UIKit
// Image downloader utility class. We are going to use the singleton instance to be able to download required images and store them into in-memory cache.
final class ImageDownloader {
static let shared = ImageDownloader()
private var cachedImages: [String: UIImage]
private var imagesDownloadTasks: [String: URLSessionDataTask]
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js