Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AIProject/iCo/Features/Base/DefaultProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ struct DefaultProgressView: View {
.multilineTextAlignment(.center)
.lineSpacing(4)
.padding(.bottom, 10)
.fixedSize(horizontal: false, vertical: true)

switch status {
case .loading:
Expand Down
9 changes: 3 additions & 6 deletions AIProject/iCo/Features/CoinDetail/View/CoinDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ struct CoinDetailView: View {
@StateObject var reportViewModel: ReportViewModel

@State private var selectedTab: Tab = .chart
@State private var baseHeight: CGFloat?
@State private var isKeyboardVisible = false
@State private var keyboardObserver: NSObjectProtocol?

Expand All @@ -36,7 +35,8 @@ struct CoinDetailView: View {
var body: some View {
ZStack(alignment: .top) {
GeometryReader { proxy in
let containerHeight = baseHeight ?? proxy.size.height
let safeArea = proxy.safeAreaInsets.top + proxy.safeAreaInsets.bottom
let containerHeight = proxy.size.height - safeArea

ScrollView {
VStack(spacing: 0) {
Expand All @@ -45,9 +45,6 @@ struct CoinDetailView: View {
content(containerHeight: containerHeight)
}
.padding(.horizontal, 16)
.onAppear {
if baseHeight == nil { baseHeight = proxy.size.height }
}
}
}
.scrollIndicators(.hidden)
Expand Down Expand Up @@ -134,7 +131,7 @@ extension CoinDetailView {
/// 차트 높이 비율은 size class에 따라 다르게 적용됩니다.
private enum Layout {
static let regularChartRatio: CGFloat = 0.55
static let compactChartRatio: CGFloat = 0.8
static let compactChartRatio: CGFloat = 0.85
}
}

Expand Down
2 changes: 1 addition & 1 deletion AIProject/iCo/Features/Dashboard/View/AIBriefingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct AIBriefingView: View {
},
content: { Text($0.summary.byCharWrapping) }
)
.frame(height: max(maxHeight, 250))
.frame(height: maxHeight)
}
}
}
Expand Down