diff --git a/GithubPractice/GithubPractice/Model/LearnerViews.swift b/GithubPractice/GithubPractice/Model/LearnerViews.swift index fc3f6d4..78a97c5 100644 --- a/GithubPractice/GithubPractice/Model/LearnerViews.swift +++ b/GithubPractice/GithubPractice/Model/LearnerViews.swift @@ -11,5 +11,6 @@ import SwiftUI let learnerViews: [any LearnerView] = [ LumiView(), JudyView(), - IrisView() + IrisView(), + RayView() ] diff --git a/GithubPractice/GithubPractice/View/LearnerViews/RayView.swift b/GithubPractice/GithubPractice/View/LearnerViews/RayView.swift new file mode 100644 index 0000000..c6e5e02 --- /dev/null +++ b/GithubPractice/GithubPractice/View/LearnerViews/RayView.swift @@ -0,0 +1,25 @@ +// +// RayView.swift +// GithubPractice +// +// Created by 이주 on 5/26/26. +// + +import SwiftUI + +struct RayView: LearnerView { + let name: String = "Ray" + + let team: String = "오도독" + + var body: some View { + Text("저의 이름은 \(name)입니다.") + .font(.largeTitle) + Text("저의 팀은 \(team) 입니다.") + .font(.subheadline) + } +} + +#Preview { + RayView() +}