Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 2 additions & 8 deletions DevLog/UI/Common/Componeent/LoadingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@
import SwiftUI

struct LoadingView: View {
private let isClear: Bool

init(isClear: Bool = false) {
self.isClear = isClear
}

var body: some View {
ZStack {
Color.black.opacity(isClear ? 0 : 0.25).ignoresSafeArea()
Color.gray.opacity(0.001).ignoresSafeArea()
ProgressView()
}
.allowsHitTesting(true)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.border(Color.blue)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

디버깅 목적으로 추가된 것으로 보이는 .border(Color.blue) 코드는 제거하는 것이 좋겠습니다. 이 코드가 남아있으면 UI에 의도치 않은 파란색 테두리가 표시됩니다.

}
}
4 changes: 2 additions & 2 deletions DevLog/UI/Home/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ struct HomeView: View {
Section(content: {
if viewModel.state.pinnedTodos.isEmpty {
if viewModel.state.isPinnedLoading {
LoadingView(isClear: true)
LoadingView()
} else {
HStack {
Spacer()
Expand Down Expand Up @@ -227,7 +227,7 @@ struct HomeView: View {
Section {
if viewModel.state.webPages.isEmpty {
if viewModel.state.isWebPageLoading {
LoadingView(isClear: true)
LoadingView()
} else {
HStack {
Spacer()
Expand Down