Skip to content

Instantly share code, notes, and snippets.

//
// ContentView.swift
// AppleMusicLyricsPlayer
//
// Created by Magesh Sridhar on 2/5/23.
//
import SwiftUI
import AVKit
@Catherine-K-George
Catherine-K-George / AWSS3Uploader.swift
Last active December 20, 2024 11:30
File upload to AWS S3 with pre-signed URL iOS/Swift 5
import AWSS3
class AWSS3Uploader {
/// Creates a upload request for uploading the specified file to a presigned remote URL
///
/// - Parameters:
/// - fileURL: The URL of the file to upload.
/// - remoteURL: The presigned URL
/// - completion: The completion handler to call when the upload request is complete.
@ajjames
ajjames / OverlayView.swift
Created April 27, 2020 23:38
SwiftUI fullscreen overlay modifier
import SwiftUI
struct OverlayView<OverlayContent: View>: ViewModifier {
@Binding var isPresented: Bool
var modalContent: OverlayContent
var transition: AnyTransition = .move(edge: .bottom)
var animation: Animation = .easeInOut
func body(content: Content) -> some View {
@fcurella
fcurella / django_postgis_on_os_x.md
Created July 27, 2012 15:22
Django and Postgis on OS X

Django and Postgis on OS X

Install Homebrew

Install a few things with homebrew:

Notice that some packages give you information at the end, read it carefully. To recall that info use brew info like this: $ brew info postgresql

$ brew install python --universal