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 ContentView: View { | |
var body: some View { | |
GeometryReader { proxy in | |
ScrollView(content: { | |
VStack { | |
Text("lorem ipsum").bold().font(.title2) | |
TextView(text: """ | |
https://ja.wikipedia.org/wiki/Lorem_ipsum |
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 FirebaseFirestoreSwift | |
import FirebaseFirestore | |
import Combine | |
struct Document<Model: Codable> { | |
let ref: DocumentReference | |
let data: Model | |
static func get(collectionPath: String, id: String) -> Deferred<Future<Document<Model>, Error>> { | |
.init { () -> Future<Document<Model>, Error> 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
@startuml models | |
class Article { | |
title: string | |
author: string | |
text: string | |
description: string | |
publishedAt: Date | |
imageURL: 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 UIKit | |
class HomeViewController: UIViewController { | |
private let uniqueKey: String = "hkjladjgaldkjakjl" | |
... | |
override func viewWillAppear(_ animated: Bool) { | |
super.viewDidLoad() | |
Scheduler.shared.monitors.updateValue( self, forKey: uniqueKey) | |
} |
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
@startuml | |
class User { | |
id: String | |
} | |
class Shop { | |
name: String | |
imageID: String | |
bussinessHours: BussinessHours | |
owner: User | |
products: <String: [Product]> |
NewerOlder