This file contains 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 Node: Identifiable { | |
let id = UUID() | |
var name: String | |
var children: [Node] = [] | |
} | |
#Preview { | |
TreeView() | |
} |
This file contains 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
// | |
// ContentView.swift | |
// BooAnimation | |
// | |
// Created by Darren Hurst on 2024-08-30. | |
// | |
import SwiftUI | |
import CoreMotion |
This file contains 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
@vrutberg | |
// | |
// box.swift | |
// Designer | |
// | |
// Created by Darren Hurst on 2024-03-27. | |
// | |
import SwiftUI |
This file contains 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 Egg3: View { | |
@State var openSpot: Int = 1 | |
@State var image1Location: CGSize = CGSize() | |
@State var image2Location: CGSize = CGSize() | |
@State var image3Location: CGSize = CGSize() | |
@State var image4Location: CGSize = CGSize() | |
@State var opacityLevel: CGFloat = 0.1 | |
This file contains 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
// | |
// SwiftUIView.swift | |
// Designer | |
// | |
// Created by Darren Hurst on 2024-03-06. | |
// | |
import SwiftUI | |
import OFCore |
This file contains 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
// | |
// Bunny.swift | |
// Designer | |
// | |
// Created by Darren Hurst on 2024-03-02. | |
// | |
import Foundation | |
import SwiftUI | |
import OFCore |
This file contains 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 PencilKit | |
struct DrawingView: View { | |
private var canvasView = PKCanvasView() | |
var body: some View { | |
MyCanvas(canvasView: canvasView) | |
} |
This file contains 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 | |
// MARK: Shop Component List | |
@available(iOS 16.0, *) | |
public enum ShopComponents: StringLiteralType { | |
public var id: Self { | |
return self | |
} |
This file contains 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 Rating: View { | |
@State var loadView = false | |
var value = 1.8 | |
var numberOf = 5 | |
var image = Image(systemName: "star") | |
var image2 = Image(systemName: "star") | |
var color: Color = .white |
This file contains 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 | |
//Data Response and View Model | |
final class ChuckNorrisJoke: Codable { | |
var value: String? | |
var icon_url: String? | |
} | |
//Interactor |
NewerOlder