mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-06-12 01:14:25 +02:00
21 lines
519 B
Swift
21 lines
519 B
Swift
//
|
|
// CanvasView.swift
|
|
// Memola
|
|
//
|
|
// Created by Dscyre Scotti on 5/4/24.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct CanvasView: UIViewControllerRepresentable {
|
|
@ObservedObject var tool: Tool
|
|
@ObservedObject var canvas: Canvas
|
|
@ObservedObject var history: History
|
|
|
|
func makeUIViewController(context: Context) -> CanvasViewController {
|
|
CanvasViewController(tool: tool, canvas: canvas, history: history)
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: CanvasViewController, context: Context) { }
|
|
}
|