Files
sodalive-ios/SodaLive/Sources/Settings/Notice/NoticeDetailView.swift
Yu Sung 280e424385 커스텀 폰트 pretendard-medium, gmarket-medium를 사용하고 있던 것을 appFont 모디
파이어를 사용하여 한국어는 pretendard, 그 외에는 시스템 폰트를 사용하도록 수정
2026-01-23 03:09:20 +09:00

58 lines
1.7 KiB
Swift

//
// NoticeDetailView.swift
// SodaLive
//
// Created by klaus on 2023/08/10.
//
import SwiftUI
import RichText
struct NoticeDetailView: View {
let notice: NoticeItem
var body: some View {
BaseView {
VStack(spacing: 0) {
DetailNavigationBar(title: String(localized: "공지사항 상세"))
VStack(alignment: .leading, spacing: 6.7) {
Text(notice.title)
.appFont(size: 14.7, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
.padding(.horizontal, 13.3)
Text(notice.date)
.appFont(size: 12, weight: .medium)
.foregroundColor(Color(hex: "525252"))
.padding(.horizontal, 13.3)
}
.padding(.horizontal, 13.3)
.padding(.vertical, 21.7)
.frame(width: screenSize().width - 26.7, alignment: .leading)
.background(Color(hex: "222222"))
.cornerRadius(6.7)
ScrollView(.vertical, showsIndicators: false) {
RichText(html: notice.content)
.padding(.horizontal, 33.3)
.padding(.vertical, 26.7)
}
}
}
}
}
struct NoticeDetailView_Previews: PreviewProvider {
static var previews: some View {
NoticeDetailView(
notice: NoticeItem(
title: "제목",
content: "<h1>콘텐츠</h1>",
date: "2022.03.03"
)
)
}
}