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
Creating the Header in 4 Lines with Broadstreet project. | |
this.header = new HeaderBar().render(); | |
this.header.setTitle("Twitter"); | |
this.header.setRightNav("Repo",{"link":"https://github.com/DarrenHurst/BroadStreet"}); | |
this.header.setLeftNav("Back",{"link":"#"}); |
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
using System; | |
using Windows.UI.ViewManagement; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.UI.Popups; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Core; | |
using Windows.UI.Xaml.Controls.Primitives; |
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
//CALLBACK PREFIX | |
var CALLBACK_PREFIX = " " | |
//-=-=-=-=-=-=-=-=-=-=-= | |
var FACEBOOK_API_ID = ' '; | |
var FACEBOOK_APP_SECRET = ' '; | |
var FACEBOOK_CALLBACKURL = CALLBACK_PREFIX +"/auth/facebook/callback"; | |
//-=-=-=-=-=-=-=-=-=-=-= | |
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
// Playground - noun: a place where people can play | |
import UIKit | |
import Foundation | |
var str = "Hello, playground" | |
var list : [String] = ["one","two"]; | |
println(list) |
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
// | |
// Router.swift | |
// test | |
// | |
// Created by Darren Hurst on 2021-04-15. | |
// | |
// Usage Example | |
// Router(isActive: $info, route: AnyView(SettingsView()), label: { _ in | |
// Text("Get an Account") | |
// }) |
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
// | |
// RealmModel.swift | |
// test | |
// | |
// Created by Darren Hurst on 2021-05-13. | |
// | |
import Foundation | |
import RealmSwift |
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
// | |
// LoginViewModel.swift | |
// test | |
// | |
// Created by Darren Hurst on 2021-03-19. | |
// | |
import Foundation | |
import SwiftUI | |
import Combine |
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 | |
protocol OnboardPage2Protocol { | |
var realmModel: RealmModel {get set} | |
var theDogs: [Dog] {get set} | |
} | |
struct OnboardPage2: View, OnboardPage2Protocol { | |
var realmModel: RealmModel |
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 RealmSwift | |
import Combine | |
class Dog: Object, ObjectKeyIdentifiable, Identifiable { | |
// @objc dynamic var id = ObjectId.generate() | |
@objc dynamic var name = "" | |
@objc dynamic var age = 0 | |
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
protocol UserProtocol { | |
var user: User {get set} | |
} | |
struct Profile : Codable { | |
var posts: [String] = [ ] | |
var comments: [String] = [ ] | |
} | |
class User : ObservableObject { | |
@Published var username: String |
OlderNewer