From eace1da9800b0f8eb09db04b956c72d3014431bb Mon Sep 17 00:00:00 2001 From: MINJEONG <160840239+whalswjd@users.noreply.github.com> Date: Fri, 23 May 2025 12:15:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Feat]=20Zhen=EB=B7=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/LearnerViews/ZhenView.swift | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift diff --git a/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift b/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift new file mode 100644 index 0000000..8a7f66c --- /dev/null +++ b/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift @@ -0,0 +1,25 @@ +// +// ZhenView.swift +// GithubPractice +// +// Created by Zhen on 5/23/25. +// + +import SwiftUI + +struct ZhenView: View { + var name: String = "zhen" + + var team: String = "송건" + + var body: some View { + Text("저의 이름은 \(name)입니다.") + .font(.largeTitle) + Text("저의 팀은 \(team) 입니다.") + .font(.subheadline) + } +} + +#Preview { + ZhenView() +} From 71b0ce21d5677c1fb8157d0d2e6a1d1ebc7b0cf6 Mon Sep 17 00:00:00 2001 From: MINJEONG <160840239+whalswjd@users.noreply.github.com> Date: Fri, 23 May 2025 12:19:07 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[Feat]=20=EB=A6=AC=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=97=90=20Zhen=20=EB=B7=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubPractice/GithubPractice/Model/LearnerViews.swift | 3 ++- GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GithubPractice/GithubPractice/Model/LearnerViews.swift b/GithubPractice/GithubPractice/Model/LearnerViews.swift index 58e7960..0477d36 100644 --- a/GithubPractice/GithubPractice/Model/LearnerViews.swift +++ b/GithubPractice/GithubPractice/Model/LearnerViews.swift @@ -10,5 +10,6 @@ import Foundation // TODO: 2. learnerViews에 자신의 View 추가하고 커밋! let learnerViews: [any LearnerView] = [ LumiView(), - FridayView() + FridayView(), + ZhenView() ] diff --git a/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift b/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift index 8a7f66c..ef48303 100644 --- a/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift +++ b/GithubPractice/GithubPractice/View/LearnerViews/ZhenView.swift @@ -7,7 +7,7 @@ import SwiftUI -struct ZhenView: View { +struct ZhenView: LearnerView { var name: String = "zhen" var team: String = "송건"