33 lines
754 B
Swift
33 lines
754 B
Swift
//
|
|
// 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
|
|
}
|