Skip to content

Commit

Permalink
✨ 여정 조회 URL을 주입받아 사용하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftyJunnos committed Dec 10, 2023
1 parent 3bfd7f5 commit 188a0bf
Show file tree
Hide file tree
Showing 14 changed files with 192 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
// Created by 이창준 on 2023.12.05.
//

import Foundation

public protocol JourneyListNavigationDelegate: AnyObject {

func navigateToRewindJourney()
func navigateToRewindJourney(with urls: [URL])

}
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,9 @@ extension JourneyListViewController: UICollectionViewDelegate {
public func collectionView(_ collectionView: UICollectionView,
didSelectItemAt indexPath: IndexPath) {
guard let journey = self.dataSource?.itemIdentifier(for: indexPath) else { return }
let spotPhotoURLs = journey.spots.map { $0.photoURL }

// TODO: Spot PhotoURL 주입
self.navigationDelegate?.navigateToRewindJourney()
let spotPhotoURLs = journey.spots.map { $0.photoURL }
self.navigationDelegate?.navigateToRewindJourney(with: spotPhotoURLs)
}

}
19 changes: 11 additions & 8 deletions iOS/Features/RewindJourney/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ private enum Dependency {

static let msDomain = "MSDomain"
static let msData = "MSData"
static let msUIKit = "MSUIKit"
static let msFoundation = "MSFoundation"
static let msDesignsystem = "MSDesignSystem"
static let msLogger = "MSLogger"
static let msCoreKit = "MSCoreKit"
static let msUIKit = "MSUIKit"
static let msNetworking = "MSNetworking"
static let msCoreKit = "MSCoreKit"
static let msExtension = "MSExtension"
static let msLogger = "MSLogger"
static let msFoundation = "MSFoundation"

}

Expand All @@ -52,14 +53,14 @@ let package = Package(
dependencies: [
.package(name: Dependency.msDomain,
path: Dependency.msDomain.fromRootPath),
.package(name: Dependency.msData,
path: Dependency.msData.fromRootPath),
.package(name: Dependency.msUIKit,
path: Dependency.msUIKit.fromRootPath),
.package(name: Dependency.msFoundation,
path: Dependency.msFoundation.fromRootPath),
.package(name: Dependency.msCoreKit,
path: Dependency.msCoreKit.fromRootPath),
.package(name: Dependency.msData,
path: Dependency.msData.fromRootPath)
.package(name: Dependency.msFoundation,
path: Dependency.msFoundation.fromRootPath)
],
targets: [
.target(name: Target.rewindJourney,
Expand All @@ -72,6 +73,8 @@ let package = Package(
package: Dependency.msUIKit),
.product(name: Dependency.msLogger,
package: Dependency.msFoundation),
.product(name: Dependency.msExtension,
package: Dependency.msFoundation),
.product(name: Dependency.msNetworking,
package: Dependency.msCoreKit),
.product(name: Dependency.msData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
21CF388A2B1DEC80009B6E53 /* MSCacheStorage in Frameworks */ = {isa = PBXBuildFile; productRef = 21CF38892B1DEC80009B6E53 /* MSCacheStorage */; };
21CF388C2B1DEC80009B6E53 /* MSFetcher in Frameworks */ = {isa = PBXBuildFile; productRef = 21CF388B2B1DEC80009B6E53 /* MSFetcher */; };
21CF388E2B1DEC80009B6E53 /* MSNetworking in Frameworks */ = {isa = PBXBuildFile; productRef = 21CF388D2B1DEC80009B6E53 /* MSNetworking */; };
21CF38902B1DEC80009B6E53 /* MSPersistentStorage in Frameworks */ = {isa = PBXBuildFile; productRef = 21CF388F2B1DEC80009B6E53 /* MSPersistentStorage */; };
DDAA4DA62B173530002F0748 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDAA4DA52B173530002F0748 /* AppDelegate.swift */; };
DDAA4DA82B173530002F0748 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDAA4DA72B173530002F0748 /* SceneDelegate.swift */; };
DDAA4DAD2B173530002F0748 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DDAA4DAB2B173530002F0748 /* Main.storyboard */; };
DDAA4DAF2B173532002F0748 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DDAA4DAE2B173532002F0748 /* Assets.xcassets */; };
DDAA4DB22B173532002F0748 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DDAA4DB02B173532002F0748 /* LaunchScreen.storyboard */; };
DDAA4DBB2B173551002F0748 /* RewindJourney in Frameworks */ = {isa = PBXBuildFile; productRef = DDAA4DBA2B173551002F0748 /* RewindJourney */; };
Expand All @@ -23,7 +18,6 @@
DDAA4DA22B173530002F0748 /* RewindJourneyDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RewindJourneyDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
DDAA4DA52B173530002F0748 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
DDAA4DA72B173530002F0748 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
DDAA4DAC2B173530002F0748 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
DDAA4DAE2B173532002F0748 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
DDAA4DB12B173532002F0748 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
DDAA4DB32B173532002F0748 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -34,11 +28,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
21CF388E2B1DEC80009B6E53 /* MSNetworking in Frameworks */,
DDAA4DBB2B173551002F0748 /* RewindJourney in Frameworks */,
21CF388C2B1DEC80009B6E53 /* MSFetcher in Frameworks */,
21CF388A2B1DEC80009B6E53 /* MSCacheStorage in Frameworks */,
21CF38902B1DEC80009B6E53 /* MSPersistentStorage in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -66,7 +56,6 @@
children = (
DDAA4DA52B173530002F0748 /* AppDelegate.swift */,
DDAA4DA72B173530002F0748 /* SceneDelegate.swift */,
DDAA4DAB2B173530002F0748 /* Main.storyboard */,
DDAA4DAE2B173532002F0748 /* Assets.xcassets */,
DDAA4DB02B173532002F0748 /* LaunchScreen.storyboard */,
DDAA4DB32B173532002F0748 /* Info.plist */,
Expand All @@ -92,10 +81,6 @@
name = RewindJourneyDemo;
packageProductDependencies = (
DDAA4DBA2B173551002F0748 /* RewindJourney */,
21CF38892B1DEC80009B6E53 /* MSCacheStorage */,
21CF388B2B1DEC80009B6E53 /* MSFetcher */,
21CF388D2B1DEC80009B6E53 /* MSNetworking */,
21CF388F2B1DEC80009B6E53 /* MSPersistentStorage */,
);
productName = RewindJourneyDemo;
productReference = DDAA4DA22B173530002F0748 /* RewindJourneyDemo.app */;
Expand Down Expand Up @@ -127,7 +112,6 @@
mainGroup = DDAA4D992B173530002F0748;
packageReferences = (
DDAA4DB92B173551002F0748 /* XCLocalSwiftPackageReference ".." */,
21CF38882B1DEC80009B6E53 /* XCLocalSwiftPackageReference "../../../MSCoreKit" */,
);
productRefGroup = DDAA4DA32B173530002F0748 /* Products */;
projectDirPath = "";
Expand All @@ -145,7 +129,6 @@
files = (
DDAA4DB22B173532002F0748 /* LaunchScreen.storyboard in Resources */,
DDAA4DAF2B173532002F0748 /* Assets.xcassets in Resources */,
DDAA4DAD2B173530002F0748 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -164,14 +147,6 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
DDAA4DAB2B173530002F0748 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
DDAA4DAC2B173530002F0748 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
DDAA4DB02B173532002F0748 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down Expand Up @@ -390,33 +365,13 @@
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
21CF38882B1DEC80009B6E53 /* XCLocalSwiftPackageReference "../../../MSCoreKit" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../../../MSCoreKit;
};
DDAA4DB92B173551002F0748 /* XCLocalSwiftPackageReference ".." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ..;
};
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
21CF38892B1DEC80009B6E53 /* MSCacheStorage */ = {
isa = XCSwiftPackageProductDependency;
productName = MSCacheStorage;
};
21CF388B2B1DEC80009B6E53 /* MSFetcher */ = {
isa = XCSwiftPackageProductDependency;
productName = MSFetcher;
};
21CF388D2B1DEC80009B6E53 /* MSNetworking */ = {
isa = XCSwiftPackageProductDependency;
productName = MSNetworking;
};
21CF388F2B1DEC80009B6E53 /* MSPersistentStorage */ = {
isa = XCSwiftPackageProductDependency;
productName = MSPersistentStorage;
};
DDAA4DBA2B173551002F0748 /* RewindJourney */ = {
isa = XCSwiftPackageProductDependency;
productName = RewindJourney;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DDAA4DA12B173530002F0748"
BuildableName = "RewindJourneyDemo.app"
BlueprintName = "RewindJourneyDemo"
ReferencedContainer = "container:RewindJourneyDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DDAA4DA12B173530002F0748"
BuildableName = "RewindJourneyDemo.app"
BlueprintName = "RewindJourneyDemo"
ReferencedContainer = "container:RewindJourneyDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DDAA4DA12B173530002F0748"
BuildableName = "RewindJourneyDemo.app"
BlueprintName = "RewindJourneyDemo"
ReferencedContainer = "container:RewindJourneyDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

This file was deleted.

Loading

0 comments on commit 188a0bf

Please sign in to comment.