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 / CachedAsyncImage.swift
Created August 26, 2024 17:19
CachedAsyncImage creates a SwiftUI view that loads, caches and displays an image asynchronously
//
// CachedAsyncImage.swift
// guTravel
//
// Created by GonzaloMR on 26/8/24.
//
import SwiftUI
/// CachedAsyncImage creates a SwiftUI view that loads, caches and displays an image asynchronously, using AsyncImagePhase to split the view to be displayed depending on the state of the image.
@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 {