diff --git a/GithubPractice/GithubPractice/Model/LearnerViews.swift b/GithubPractice/GithubPractice/Model/LearnerViews.swift index 9f43bbc..4603e2a 100644 --- a/GithubPractice/GithubPractice/Model/LearnerViews.swift +++ b/GithubPractice/GithubPractice/Model/LearnerViews.swift @@ -10,6 +10,8 @@ import Foundation // TODO: 2. learnerViews에 자신의 View 추가하고 커밋! let learnerViews: [any LearnerView] = [ LumiView(), + FridayView(), + CherryView() JudyView(), FridayView(), ElenaView(), diff --git a/GithubPractice/GithubPractice/View/LearnerViews/CherryView.swift b/GithubPractice/GithubPractice/View/LearnerViews/CherryView.swift new file mode 100644 index 0000000..82a4c8c --- /dev/null +++ b/GithubPractice/GithubPractice/View/LearnerViews/CherryView.swift @@ -0,0 +1,26 @@ +// +// CherryView.swift +// GithubPractice +// +// Created by 서연 on 5/23/25. +// + +import SwiftUI + +struct CherryView: LearnerView { + // TODO: 1. 이름, 팀 수정하고 커밋하기 + var name: String = "Cherry" + + var team: String = "4T2D" + + var body: some View { + Text("저의 이름은 \(name)입니다.") + .font(.largeTitle) + Text("저의 팀은 \(team) 입니다.") + .font(.subheadline) + } +} + +#Preview { + CherryView() +}