cs193p-memorize/Memorize/Constans.swift
Ching 08dc4700a3 feat(view, contstants): 修改 card 中字体大小为自适应;增加 constants
修改 card 中字体大小为自适应;增加 constants

Signed-off-by: Ching <loooching@gmail.com>
2023-02-12 23:19:35 +08:00

21 lines
439 B
Swift

//
// Constans.swift
// Memorize
//
// Created by ching on 2023/2/12.
//
import Foundation
import SwiftUI
struct const {
enum DrawingConstants {
static let cornerRadius: CGFloat = 20
static let lineWidth: CGFloat = 3
static let fontScale: CGFloat = 0.8
static let gridWidth: CGFloat = 80
static let gridAspectRatio: CGFloat = 2 / 3
static let matchedCardOpacity: Double = 0
}
}