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
// | |
// File.swift | |
// | |
// | |
// Created by Darren Hurst on 2024-01-03. | |
// | |
import Foundation | |
import SwiftUI |
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
// | |
// tree2.swift | |
// Shop | |
// | |
// Created by Darren Hurst on 2023-12-23. | |
// | |
import Foundation | |
import SwiftUI | |
import SpriteKit |
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
// Gist one file for easy run | |
// snow.sks & fireflies.sks dependency | |
import Foundation | |
import SwiftUI | |
import SpriteKit | |
class Ornament: ObservableObject { | |
@Published var ornamentIndex: Int? | |
@Published var gif: (any View)? |
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 Foundation | |
import SwiftUI | |
@available(iOS 16.0, *) | |
struct Tree: View { | |
@State var startAnimation: Bool = false | |
@State private var particleSystem = ParticleView() | |
var body: some View { | |
VStack { | |
buildTree().anyView |
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 Foundation | |
import SwiftUI | |
struct CircleText: View { | |
@State var controlAnimation: Bool = false | |
let title: String = "Nathan & Dylan Games " | |
var body: some View { | |
ZStack{ | |
let characters = Array(title) |
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 Foundation | |
import SwiftUI | |
@available(iOS 16.0, *) | |
struct AnimalPictures: View { | |
@State var profileImg: ProfileImgType = .teddybear | |
var body: some View { | |
VStack{ |
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 Foundation | |
import SwiftUI | |
@available(iOS 16.0, *) | |
struct AnimalPictures: View { | |
@State var profileImg: ProfileImgType = .teddybear | |
var body: some View { | |
VStack{ |
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 Foundation | |
import SwiftUI | |
import PhotosUI | |
@available(iOS 16.0, *) | |
struct Photos: View { | |
var body: some View { | |
VStack{ | |
VStack { |
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 Foundation | |
import SwiftUI | |
import PhotosUI | |
@available(iOS 16.0, *) | |
struct Photos: View { | |
@ObservedObject var viewModel = PhotosModel() | |
@State var selectedItems: PhotosPickerItem? | |
enum ImageState { |