-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
116 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// Project.swift | ||
// ProjectDescriptionHelpers | ||
// | ||
// Created by kimchansoo on 6/29/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import ProjectDescription | ||
import ProjectDescriptionHelpers | ||
|
||
let project = Project.configure( | ||
name: "DemoApp", | ||
packages: [ | ||
], | ||
targets: [ | ||
.configure( | ||
name: "DemoApp", | ||
product: .app, | ||
bundleId: "ppac.farmeme.DemoApp", | ||
infoPlist: .extendingDefault(with: [ | ||
"CFBundleShortVersionString": "1.0", | ||
"CFBundleVersion": "1", | ||
"UIMainStoryboardFile": "", | ||
"UILaunchStoryboardName": "LaunchScreen" | ||
]), | ||
sources: "Sources/**", | ||
resources: "Resources/**", | ||
dependencies: [ | ||
.Feature.Home, | ||
.Feature.Recommend, | ||
.Feature.Search, | ||
.Feature.MyPage, | ||
.ResourceKit, | ||
.Core.DesignSystem, | ||
.Core.PPACNetwork, | ||
.ThirdParty.Lottie, | ||
.ThirdParty.Dependency, | ||
], | ||
settings: .settings( | ||
base: [ | ||
"DEVELOPMENT_TEAM": "4NV4Z6BW27", | ||
"CODE_SIGN_STYLE": "Manual", | ||
"PROVISIONING_PROFILE_SPECIFIER": "match AppStore ppac.farmeme.App", | ||
"CODE_SIGN_IDENTITY": "Apple Distribution: Chansoo Kim (4NV4Z6BW27)" | ||
] | ||
// defaultSettings: .recommended(excluding: []) | ||
) | ||
) | ||
] | ||
) |
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 @@ | ||
// dummy임니다 |
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,57 @@ | ||
// | ||
// DemoApp.swift | ||
// App | ||
// | ||
// Created by kimchansoo on 6/1/24. | ||
// Copyright © 2024 ppac.farmeme. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
import Home | ||
import MemeDetail | ||
|
||
@main | ||
struct DemoApp: App { | ||
|
||
enum Views: String, CaseIterable, Identifiable { | ||
case MemeDetail | ||
|
||
var id: String { self.rawValue } | ||
|
||
var view: some View { | ||
switch self { | ||
case .MemeDetail: | ||
getMemeDetailView() | ||
} | ||
} | ||
} | ||
|
||
@State private var selectedView: Views? = nil | ||
|
||
var body: some Scene { | ||
WindowGroup { | ||
NavigationView { | ||
List(Views.allCases) { view in | ||
NavigationLink(destination: view.view) { | ||
Text(view.rawValue) | ||
} | ||
} | ||
.navigationTitle("Views") | ||
.background(.blue) | ||
} | ||
} | ||
} | ||
} | ||
|
||
private extension DemoApp.Views { | ||
func getMemeDetailView() -> some View { | ||
return MemeDetailView( | ||
viewModel: MemeDetailViewModel( | ||
meme: .mock, | ||
router: nil, | ||
copyImageUseCase: CopyImageUseCaseImpl(), | ||
postLikeUseCase: PostLikeUseCaseImpl() | ||
) | ||
) | ||
} | ||
} |