-
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.
Merge pull request #158 from boostcampwm2023/iOS/epic/SpotScene
[iOS] Spot Scene 적용
- Loading branch information
Showing
82 changed files
with
3,883 additions
and
841 deletions.
There are no files selected for viewing
66 changes: 0 additions & 66 deletions
66
iOS/Features/Home/.swiftpm/xcode/xcshareddata/xcschemes/NavigateMap.xcscheme
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
iOS/Features/Home/.swiftpm/xcode/xcshareddata/xcschemes/RecordJourney.xcscheme
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
iOS/Features/JourneyList/.swiftpm/xcode/xcshareddata/xcschemes/JourneyList.xcscheme
This file was deleted.
Oops, something went wrong.
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
37 changes: 37 additions & 0 deletions
37
iOS/Features/JourneyList/Sources/JourneyList/Model/DTOConvertor.swift
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,37 @@ | ||
// | ||
// DTOConvertor.swift | ||
// JourneyList | ||
// | ||
// Created by 이창준 on 2023.11.27. | ||
// | ||
|
||
import MSData | ||
|
||
extension Journey { | ||
|
||
init(dto: JourneyDTO) { | ||
self.id = dto.id | ||
self.location = dto.location | ||
self.date = dto.metaData.date | ||
self.spots = dto.spots.map { Spot(dto: $0) } | ||
self.song = Song(dto: dto.song) | ||
} | ||
|
||
} | ||
|
||
extension Spot { | ||
|
||
init(dto: ResponsibleSpotDTO) { | ||
self.photoURLs = dto.photoURLs | ||
} | ||
|
||
} | ||
|
||
extension Song { | ||
|
||
init(dto: SongDTO) { | ||
self.title = dto.title | ||
self.artist = dto.artist | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
iOS/Features/JourneyList/Sources/JourneyList/Model/Journey.swift
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,44 @@ | ||
// | ||
// Journey.swift | ||
// JourneyList | ||
// | ||
// Created by 이창준 on 11/23/23. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Journey: Hashable, Decodable { | ||
|
||
// MARK: - Properties | ||
|
||
let id: UUID | ||
let location: String | ||
let date: Date | ||
let spots: [Spot] | ||
let song: Song | ||
|
||
// MARK: - Initializer | ||
|
||
init(id: UUID = UUID(), location: String, date: Date, spots: [Spot], song: Song) { | ||
self.id = id | ||
self.location = location | ||
self.date = date | ||
self.spots = spots | ||
self.song = song | ||
} | ||
|
||
} | ||
|
||
// MARK: - Hashable | ||
|
||
extension Journey { | ||
|
||
static func == (lhs: Journey, rhs: Journey) -> Bool { | ||
return lhs.id == rhs.id | ||
} | ||
|
||
func hash(into hasher: inout Hasher) { | ||
hasher.combine(self.id) | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
iOS/Features/JourneyList/Sources/JourneyList/Model/Song.swift
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,15 @@ | ||
// | ||
// Song.swift | ||
// JourneyList | ||
// | ||
// Created by 이창준 on 2023.11.27. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Song: Decodable { | ||
|
||
let artist: String | ||
let title: String | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
iOS/Features/JourneyList/Sources/JourneyList/Model/Spot.swift
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,14 @@ | ||
// | ||
// Spot.swift | ||
// JourneyList | ||
// | ||
// Created by 이창준 on 11/23/23. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Spot: Decodable { | ||
|
||
let photoURLs: [String] | ||
|
||
} |
Oops, something went wrong.