Skip to content

Commit

Permalink
SplashView 구현 (#102)
Browse files Browse the repository at this point in the history
* 🍱 Splash 편행 로고 이미지 에셋 추가

* 📦️ Splash 편행 로고 전역 상수 정의

* 💄 SplashView 구현

* 🌐 "합리적인 편의점 소비의 시작!" Localizable
  • Loading branch information
eung7 authored Mar 17, 2024
1 parent 0e49215 commit d056926
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 6 deletions.
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

0 comments on commit d056926

Please sign in to comment.