This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
// MARK: - Exercise Data Model | |
struct ExerciseSet: Identifiable { | |
let id = UUID() | |
var weight: Double | |
var reps: Int | |
var isCompleted: Bool = false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct FinancialHealthSheetPreview: View { | |
@State private var showFinancialHealthSheet = false | |
var body: some View { | |
VStack { | |
Button(action: { | |
showFinancialHealthSheet.toggle() | |
}, label: { | |
HStack { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Workout data model | |
struct WorkoutData { | |
let name: String | |
let date: Date | |
let duration: TimeInterval | |
let exerciseCount: Int | |
let effortPercentage: Double | |
} | |
struct WorkoutExpandedCard: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct EventPurchasePlan: Identifiable, Hashable { | |
let id = UUID() | |
let price: Double | |
let type: EventPlanType | |
let discount: Double | |
let description: String | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct BankindDashboard: View { | |
@State private var balance: Double = 3700.75 | |
var body: some View { | |
VStack { | |
// Account Card | |
VStack { | |
// Account holder header | |
HStack { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
// MARK: - BankingSnippet View | |
struct BankingSnippet: View { | |
var body: some View { | |
VStack { | |
// Header | |
header(amount: 16500) | |
// Widget 1 | |
bankingWidget() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
// MARK: - Internal Configurations | |
public struct ColorConfiguration { | |
public var light: Color | |
public var dark: Color | |
public init(light: Color, dark: Color) { | |
self.light = light | |
self.dark = dark |