Skip to content

Instantly share code, notes, and snippets.

View shanecowherd's full-sized avatar

Shane Cowherd shanecowherd

  • Cowherd.com, Making Blocks, PBSCO, Bulb, BombBomb, Echo1612
  • Colorado Springs
  • 21:22 (UTC -06:00)
View GitHub Profile
@shanecowherd
shanecowherd / Reencoder.swift
Created February 6, 2023 21:44 — forked from trilliwon/Reencoder.swift
Reencoder ios swift
import AVFoundation
import os.log
/// https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/05_Export.html
/**
Steps
- Use serialization queues to handle the asynchronous nature of reading and writing audiovisual data
- Initialize an asset reader and configure two asset reader outputs, one for audio and one for video
- Initialize an asset writer and configure two asset writer inputs, one for audio and one for video
@shanecowherd
shanecowherd / jerrybutton.swift
Created March 22, 2023 04:37
JerryButton.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Button")
.font(.system(size: 20, weight: .semibold, design: .rounded))
.frame(width: 200, height: 60)
.background(
ZStack {