Complete rename across all bundle IDs, App Groups, CloudKit containers, StoreKit product IDs, data store filenames, URL schemes, logger subsystems, Swift identifiers, user-facing strings (7 languages), file names, directory names, Xcode project, schemes, assets, and documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.1 KiB
Swift
39 lines
1.1 KiB
Swift
//
|
|
// CircleView.swift
|
|
// Reflect (iOS)
|
|
//
|
|
// Created by Trey Tartt on 1/13/22.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftUI
|
|
|
|
struct DayChartView: ChartViewItemBuildable, View, Hashable {
|
|
init(color: Color, weekDay: Int, shape: BGShape) {
|
|
self.color = color
|
|
self.weekDay = weekDay
|
|
self.shape = shape
|
|
}
|
|
|
|
var id = UUID()
|
|
var color: Color
|
|
var weekDay: Int
|
|
var shape: BGShape
|
|
|
|
var body: some View {
|
|
shape.view(withText: Text(""), bgColor: color, textColor: .clear)
|
|
.frame(minWidth: 5, idealWidth: 50, maxWidth: 50,
|
|
minHeight: 5, idealHeight: 20, maxHeight: 50,
|
|
alignment: .center)
|
|
.opacity(color == Mood.missing.color ? 0.5 : 1.0)
|
|
}
|
|
|
|
var filteredDaysView: some View {
|
|
shape.view(withText: Text(""), bgColor: Mood.missing.color, textColor: .clear)
|
|
.frame(minWidth: 5, idealWidth: 50, maxWidth: 50,
|
|
minHeight: 5, idealHeight: 20, maxHeight: 50,
|
|
alignment: .center)
|
|
.opacity(color == Mood.missing.color ? 0.5 : 1.0)
|
|
}
|
|
}
|