From f72a017ac78d68ce9fd5a2d48f0b8b817b06bf7f Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 23 May 2025 12:16:03 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20Martin=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/Model/LearnerViews.swift | 3 ++- .../View/LearnerViews/MartinView.swift | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 GithubPractice/GithubPractice/View/LearnerViews/MartinView.swift diff --git a/GithubPractice/GithubPractice/Model/LearnerViews.swift b/GithubPractice/GithubPractice/Model/LearnerViews.swift index 58e7960..bff5ce7 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(), + MartinView() ] diff --git a/GithubPractice/GithubPractice/View/LearnerViews/MartinView.swift b/GithubPractice/GithubPractice/View/LearnerViews/MartinView.swift new file mode 100644 index 0000000..e26fa83 --- /dev/null +++ b/GithubPractice/GithubPractice/View/LearnerViews/MartinView.swift @@ -0,0 +1,26 @@ +// +// MartinView.swift +// GithubPractice +// +// Created by jihanchae on 5/23/25. +// + +import SwiftUI + +struct MartinView: LearnerView { + // TODO: 1. 이름, 팀 수정하고 커밋하기 + var name: String = "Martin" + + var team: String = "멘티팀" + + var body: some View { + Text("저의 이름은 \(name)입니다.") + .font(.largeTitle) + Text("저의 팀은 \(team) 입니다.") + .font(.subheadline) + } +} + +#Preview { + MartinView() +}