-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `NoticeView` * Apply SwiftFormat changes * `notices` -> `notice` --------- Co-authored-by: peng-u-0807 <[email protected]>
- Loading branch information
1 parent
5065f38
commit 2d8cfc4
Showing
7 changed files
with
158 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// | ||
// NoticeView.swift | ||
// SNUTT | ||
// | ||
// Created by 최유림 on 9/29/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct NoticeView: View { | ||
let title: String? | ||
let content: String? | ||
let sendFeedback: (String, String) async -> Bool | ||
|
||
@State private var pushToFeedBackView = false | ||
|
||
var body: some View { | ||
VStack(spacing: 32) { | ||
Image("warning.cat") | ||
VStack(spacing: 8) { | ||
if let title = title { | ||
Text(title) | ||
.font(STFont.title.font) | ||
} | ||
if let content = content { | ||
Text(content) | ||
.font(STFont.detailLabel.font) | ||
.multilineTextAlignment(.center) | ||
} | ||
Spacer().frame(height: 4) | ||
Button { | ||
pushToFeedBackView = true | ||
} label: { | ||
Text("문의사항 보내기") | ||
.foregroundColor(.white) | ||
.font(.system(size: 14, weight: .semibold)) | ||
.padding(.horizontal, 16) | ||
.padding(.vertical, 8) | ||
.background( | ||
STColor.cyan | ||
) | ||
.clipShape(.capsule) | ||
} | ||
} | ||
} | ||
.padding(.horizontal, 48) | ||
.background( | ||
NavigationLink("", isActive: $pushToFeedBackView) { | ||
UserSupportView(email: nil, sendFeedback: sendFeedback) | ||
} | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters