wip
This commit is contained in:
23
Shared/Protocols/SharingTemplate.swift
Normal file
23
Shared/Protocols/SharingTemplate.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// 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 }
|
||||
var image: UIImage { get }
|
||||
static var description: String { get }
|
||||
|
||||
@ViewBuilder var mainView: Self.MainView { get }
|
||||
@ViewBuilder var preview: Self.Preview { get }
|
||||
}
|
||||
Reference in New Issue
Block a user