WIP - icon generator
This commit is contained in:
32
Shared/Models/CustomIcon.swift
Normal file
32
Shared/Models/CustomIcon.swift
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// CustomIcon.swift
|
||||
// Feels (iOS)
|
||||
//
|
||||
// Created by Trey Tartt on 2/13/22.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
class CustomIcon: ObservableObject {
|
||||
init(leftEye: AnyView,
|
||||
rightEye: AnyView,
|
||||
mouth: AnyView,
|
||||
background: [(AnyView, UUID)],
|
||||
bgColor: Color,
|
||||
innerColor: Color) {
|
||||
self.leftEye = leftEye
|
||||
self.rightEye = rightEye
|
||||
self.mouth = mouth
|
||||
self.background = background
|
||||
self.bgColor = bgColor
|
||||
self.innerColor = innerColor
|
||||
}
|
||||
|
||||
@Published var leftEye: AnyView
|
||||
@Published var rightEye: AnyView
|
||||
@Published var mouth: AnyView
|
||||
|
||||
@Published var background: [(AnyView, UUID)]
|
||||
@Published var bgColor: Color
|
||||
@Published var innerColor: Color
|
||||
}
|
||||
Reference in New Issue
Block a user