create all templates .... started to fill one out

This commit is contained in:
Trey t
2022-02-09 23:03:47 -06:00
parent 34962d2fa3
commit 96f766c8c9
16 changed files with 561 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
//
// SharingTemplate.swift
// Feels (iOS)
//
// Created by Trey Tartt on 2/6/22.
//
import Foundation
import SwiftUI
protocol SharingTemplate {
associatedtype MainView : View
associatedtype Preview : View
var startDate: Date { get }
var endDate: Date { get }
var isPreview: Bool { get }
static var description: String { get }
@ViewBuilder var mainView: Self.MainView { get }
@ViewBuilder var preview: Self.Preview { get }
}