This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ScrollIntoSheet.swift | |
// (c) Théo Arrouye 2024 | |
// | |
// | |
import SwiftUI | |
struct ScrollIntoSheetView: View { | |
let backgroundColor: Color = .black |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct AppleMusicProfile: View { | |
let profileImage: Image | |
let name: String | |
let username: String | |
var body: some View { | |
ZStack { | |
// (1) Blurred profile image for background |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIApplication+Safari.swift | |
// DoraDora | |
// | |
// Created by Théo Arrouye on 5/12/23. | |
// | |
import SafariServices | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CharadeView.swift | |
// | |
// | |
// Created by Théo Arrouye on 9/14/22. | |
// | |
import SwiftUI | |
// MARK: Custom Clip Shape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
import MapKit | |
struct MapView: UIViewRepresentable { | |
var locationManager = CLLocationManager() | |
func setupManager() { | |
locationManager.desiredAccuracy = kCLLocationAccuracyBest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
struct ToggleView: View { | |
@Binding var name: String | |
@Binding var symbolSystemName: String | |
@Binding var enabled : Bool | |
@Binding var highlightCol : UIColor | |
@Binding var expanded : Bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Integer> puzzle; | |
float pieceSize; | |
color[] cols; | |
boolean scrambled; | |
int selected; | |
boolean won; | |
boolean menu; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float rows = 10.0; | |
PVector tileSize; | |
boolean[][] ladders; | |
int EASYMODE = 1; | |
int HARDMODE = 2; | |
int MODE = EASYMODE; | |
int score = 0; |
NewerOlder