Skip to content

Instantly share code, notes, and snippets.

//
// AudioDeviceNotifier.swift
//
// Created by Rob Jonson on 20/01/2017.
// Copyright © 2017 HobbyistSoftware. All rights reserved.
//
import Foundation
import CoreAudio
@ConfusedVorlon
ConfusedVorlon / HSHostingController.swift
Created April 11, 2020 10:03
HSHostingController, easily present fullscreen modals, safari, email, etc from SwiftUI
//
// HSHostingController.swift
// PuppySounds
//
// Created by Rob Jonson on 09/04/2020.
// Copyright © 2020 HobbyistSoftware. All rights reserved.
//
//HSHostingController.swift
import Foundation
import Foundation
import SwiftUI
extension Published:Decodable where Value:Decodable {
public init(from decoder: Decoder) throws {
let decoded = try Value(from:decoder)
self = Published(initialValue:decoded)
}
}
//
// ContentView.swift
// Stars
//
// Created by Rob Jonson on 03/07/2023.
//
import SwiftUI
struct ContentView: View {