@@ -16,44 +16,48 @@ struct ArticleView: View {
1616 ]
1717 @StateObject var viewModel : ArticleViewModel
1818 var body : some View {
19- NavigationView {
20- VStack ( alignment: . leading) {
21- HStack {
22- //MARK: - 로고
23- Text ( " Dietto " )
24- . font ( . NerkoOne40)
25- . foregroundStyle ( . text)
26- Spacer ( )
19+ ZStack {
20+ Color . backGround. ignoresSafeArea ( )
21+
22+ NavigationView {
23+ VStack ( alignment: . leading) {
24+ HStack {
25+ //MARK: - 로고
26+ Text ( " Dietto " )
27+ . font ( . NerkoOne40)
28+ . foregroundStyle ( . text)
29+ Spacer ( )
30+
31+ NavigationLink ( destination: InterestsView ( viewModel: viewModel) ) {
32+ Text ( " 관심사 수정 " )
33+ . font ( . pretendardMedium16)
34+ . foregroundColor ( . white)
35+ . padding ( . vertical, 4 )
36+ . padding ( . horizontal, 12 )
37+ . background ( Color . appMain)
38+ . clipShape ( Capsule ( ) )
39+ }
40+ }
41+ . padding ( [ . leading, . trailing] , 16 )
42+ Text ( " 내 관심사 " )
43+ . font ( . pretendardBold20)
44+ . padding ( . leading, 16 )
45+ Interests (
46+ topic: " " ,
47+ titles: viewModel. selectedInterests. map { $0. title} ,
48+ onClicked: { _ in } ,
49+ isSelected: { _ in true }
50+ ) . padding ( . leading, 16 )
2751
28- NavigationLink ( destination: InterestsView ( viewModel: viewModel) ) {
29- Text ( " 관심사 수정 " )
30- . font ( . pretendardMedium16)
31- . foregroundColor ( . white)
32- . padding ( . vertical, 4 )
33- . padding ( . horizontal, 12 )
34- . background ( Color . appMain)
35- . clipShape ( Capsule ( ) )
52+ List ( articles, id: \. self) { item in
53+ LinkRow ( previewURL: URL ( string: item) !)
54+ . background ( Color . backGround) . ignoresSafeArea ( . all)
3655 }
56+ . listStyle ( . plain)
3757 }
38- . padding ( [ . leading, . trailing] , 16 )
39- Text ( " 내 관심사 " )
40- . font ( . pretendardBold20)
41- . padding ( . leading, 16 )
42- Interests (
43- topic: " " ,
44- titles: viewModel. selectedInterests. map { $0. title} ,
45- onClicked: { _ in } ,
46- isSelected: { _ in true }
47- ) . padding ( . leading, 16 )
48-
49- List ( articles, id: \. self) { item in
50- LinkRow ( previewURL: URL ( string: item) !)
51- }
52- . listStyle ( . plain)
53-
5458 }
59+ . toolbarVisibility ( . hidden, for: . navigationBar)
5560 }
56- . toolbarVisibility ( . hidden, for: . navigationBar)
5761 }
5862}
5963
@@ -71,43 +75,43 @@ struct ArticleView: View {
7175//
7276/*
7377 [
74- {
75- "title": "계룡시, 등굣길 금연 캠페인 성황리에 마무리",
76- "link": "https://www.news1.kr/articles/?5301234"
77- },
78- {
79- "title": "영도구보건소, 금연구역 인증 걷기 챌린지 운영",
80- "link": "https://www.news2.kr/articles/?5301235"
81- },
82- {
83- "title": "광주시의회, 세계 금연의 날 맞아 금연 결의 대회 개최",
84- "link": "https://www.news3.kr/articles/?5301236"
85- },
86- {
87- "title": "팔굽혀펴기로 치매 예방하기?...근육량 증가하면 당뇨·치매 위험 낮아져 [Health Recipe]",
88- "link": "https://www.healthnews.kr/articles/?5301237"
89- },
90- {
91- "title": "노년층 복병 ‘골근감소증’ “장내 미생물 먹었더니”…뼈밀도·근육량 증가↑",
92- "link": "https://www.healthnews.kr/articles/?5301238"
93- },
94- {
95- "title": "체중 재증가하는 여성은 근육량보다 지방량 증가가 원인",
96- "link": "https://www.healthnews.kr/articles/?5301239"
97- },
98- {
99- "title": "금연 무기력함 극복하는 꿀팁 3가지를 소개합니다! : 네이버 블로그",
100- "link": "https://blog.naver.com/PostView.nhn?blogId=example1&logNo=222123456789"
101- },
102- {
103- "title": "근육량 증가, 근성장을 극대화해줄 꿀팁! - 네이버 블로그",
104- "link": "https://blog.naver.com/PostView.nhn?blogId=example2&logNo=222123456790"
105- },
106- {
107- "title": "지속 가능한 근육량 증가 운동 프로그램 : 네이버 블로그",
108- "link": "https://blog.naver.com/PostView.nhn?blogId=example3&logNo=222123456791"
109- }
78+ {
79+ "title": "계룡시, 등굣길 금연 캠페인 성황리에 마무리",
80+ "link": "https://www.news1.kr/articles/?5301234"
81+ },
82+ {
83+ "title": "영도구보건소, 금연구역 인증 걷기 챌린지 운영",
84+ "link": "https://www.news2.kr/articles/?5301235"
85+ },
86+ {
87+ "title": "광주시의회, 세계 금연의 날 맞아 금연 결의 대회 개최",
88+ "link": "https://www.news3.kr/articles/?5301236"
89+ },
90+ {
91+ "title": "팔굽혀펴기로 치매 예방하기?...근육량 증가하면 당뇨·치매 위험 낮아져 [Health Recipe]",
92+ "link": "https://www.healthnews.kr/articles/?5301237"
93+ },
94+ {
95+ "title": "노년층 복병 ‘골근감소증’ “장내 미생물 먹었더니”…뼈밀도·근육량 증가↑",
96+ "link": "https://www.healthnews.kr/articles/?5301238"
97+ },
98+ {
99+ "title": "체중 재증가하는 여성은 근육량보다 지방량 증가가 원인",
100+ "link": "https://www.healthnews.kr/articles/?5301239"
101+ },
102+ {
103+ "title": "금연 무기력함 극복하는 꿀팁 3가지를 소개합니다! : 네이버 블로그",
104+ "link": "https://blog.naver.com/PostView.nhn?blogId=example1&logNo=222123456789"
105+ },
106+ {
107+ "title": "근육량 증가, 근성장을 극대화해줄 꿀팁! - 네이버 블로그",
108+ "link": "https://blog.naver.com/PostView.nhn?blogId=example2&logNo=222123456790"
109+ },
110+ {
111+ "title": "지속 가능한 근육량 증가 운동 프로그램 : 네이버 블로그",
112+ "link": "https://blog.naver.com/PostView.nhn?blogId=example3&logNo=222123456791"
113+ }
110114 ]
111-
112-
115+
116+
113117 */
0 commit comments