Skip to content

Instantly share code, notes, and snippets.

View nysander's full-sized avatar
👨‍💻
Working at Tedee LLC

Paweł Madej nysander

👨‍💻
Working at Tedee LLC
View GitHub Profile
@AvdLee
AvdLee / FileManagerExtensions.swift
Last active November 19, 2023 23:23
Easily print out useful locations for usage during debugging on the Simulator.
extension FileManager {
/*
Prints out the locations of the simulator and the shared group folder.
This is useful for debugging file issues.
Example usage: FileManager.default.printFileLocations()
*/
func printFileLocations() {
let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)
let simulatorFolder = paths.last!
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16
@ozgurshn
ozgurshn / SVGKFastImageViewSUI.swift
Created June 29, 2020 07:24
Using SVGKit in Swift UI
import SwiftUI
import SVGKit
struct SVGKFastImageViewSUI:UIViewRepresentable
{
@Binding var url:URL
@Binding var size:CGSize
func makeUIView(context: Context) -> SVGKFastImageView {