Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplashView 구현 #102

Merged
merged 4 commits into from
Mar 17, 2024
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
22 changes: 22 additions & 0 deletions PyeonHaeng-iOS/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,28 @@
}
}
},
"합리적인 편의점 소비의 시작!" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "The start of rational convenience store consumption!"
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "合理的なコンビニエンスストアの消費の始まり!"
}
},
"ko" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "합리적인 편의점 소비의 시작!"
}
}
}
},
"행사 진행 편의점" : {
"extractionState" : "manual",
"localizations" : {
Expand Down
20 changes: 14 additions & 6 deletions PyeonHaeng-iOS/Sources/Scenes/SplashScene/SplashView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by 홍승현 on 1/19/24.
//

import DesignSystem
import SwiftUI

struct SplashView: View {
Expand All @@ -17,14 +18,21 @@ struct SplashView: View {

var body: some View {
if showingSplash {
Text(verbatim: "SplashView")
.onAppear {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
withAnimation {
showingSplash = false
}
VStack {
Text("합리적인 편의점 소비의 시작!")
.font(.b1)
.foregroundStyle(.gray300)
.multilineTextAlignment(.center)
.padding(.horizontal, 20)
Image.splashLogo
}
.onAppear {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
withAnimation {
showingSplash = false
}
}
}
} else {
HomeView(viewModel: HomeViewModel(service: dependency.homeService))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "SplashLogo.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public extension Image {
static let store: Image = .init(.store)

static let textLogo: Image = .init(.textLogo)
static let splashLogo: Image = .init(.splashLogo)

static let xCircleFill: Image = .init(.xCircleFill)
static let xCircle: Image = .init(.xCircle)
Expand Down