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 Device: Hashable { | |
var iPadSerial: String | |
var iPadUser: String | |
// add hash | |
func hash(into hasher: inout Hasher) { | |
hasher.combine(iPadSerial) | |
//hasher.combine(iPadUser) | |
} | |
} |
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 ViewPort : View { | |
@State var isZoomed: Bool = false | |
@State var face: String | |
@State var isFaceShown: Bool = true | |
@State var boxColor: Color = .clear | |
@State var playerScore : Int = 0 | |
@State var npc: Bool = true |
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 UIKit | |
import SwiftUI | |
protocol ViewContainer { | |
associatedtype view: View | |
} | |
struct View1: View, ViewContainer { | |
typealias view = Self | |
var title: String? = "Title 1" |
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 UIKit | |
struct Item: Equatable { | |
var name: String? | |
var price: Double? | |
} | |
class a : ObservableObject { | |
@Published var items: [Item] = [ | |
Item(name: "hotdogs", price:3.99), |
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
// | |
// FlightCenter.swift | |
// RTSPStreamer | |
// | |
// Created by Darren Hurst on 2023-02-07. | |
// | |
import Foundation | |
import SwiftUI | |
import CoreLocation |
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
// | |
// CartView.swift | |
// RTSPStreamer | |
// | |
// Created by Darren Hurst on 2023-02-05. | |
// | |
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
// | |
// CartView.swift | |
// RTSPStreamer | |
// | |
// Created by Darren Hurst on 2023-02-05. | |
// | |
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
// | |
// CartView.swift | |
// RTSPStreamer | |
// | |
// Created by Darren Hurst on 2023-02-05. | |
// | |
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
// | |
// Created by Darren Hurst on 2023-02-03. | |
// | |
import Foundation | |
import SwiftUI | |
struct Storefront: View { | |
@ObservedObject var view = ViewModel() |