Skip to content

Instantly share code, notes, and snippets.

View tarrouye's full-sized avatar
🤧
*achoo*

Théo Arrouye tarrouye

🤧
*achoo*
View GitHub Profile
@tarrouye
tarrouye / AMAlbumDetailsView.swift
Created October 5, 2024 23:49
Sample code replicating the album details / track list screen from Apple Music
struct AMAlbumDetailsView: View {
let albumArt: Image
let title: String
let artist: String
let genre: String
let releaseYear: String
let quality: String
let tracks: [String]
@State private var playingTrack: String?
@tarrouye
tarrouye / Example.swift
Created November 19, 2024 20:19
Transmission Hero Move Example
import SwiftUI
import Transmission // https://github.com/nathantannar4/Transmission
struct HeroMoveExample: View {
let colors: [Color] = [.blue, .red, .green, .orange]
var body: some View {
NavigationStack {
ScrollView(.vertical) {
ForEach(colors, id: \.hashValue) { color in
//
// ScrollIntoSheet.swift
// (c) Théo Arrouye 2024
//
//
import SwiftUI
struct ScrollIntoSheetView: View {
let backgroundColor: Color = .black