├── README.md ├── MovieSwiftUI2 ├── Packages │ ├── UI │ │ ├── README.md │ │ ├── Sources │ │ │ └── UI │ │ │ │ ├── Colors │ │ │ │ ├── Colors.xcassets │ │ │ │ │ ├── Contents.json │ │ │ │ │ └── primaryBackgroundColor.colorset │ │ │ │ │ │ └── Contents.json │ │ │ │ └── Colors.swift │ │ │ │ ├── StaticModels │ │ │ │ └── MovieStatic.swift │ │ │ │ └── Movies │ │ │ │ └── MovieCarrouselView.swift │ │ ├── .gitignore │ │ ├── Tests │ │ │ └── UITests │ │ │ │ └── UITests.swift │ │ └── Package.swift │ └── Backend │ │ ├── README.md │ │ ├── .gitignore │ │ ├── Sources │ │ └── Backend │ │ │ ├── Network │ │ │ ├── JSONModels │ │ │ │ └── PaginatedResponse.swift │ │ │ ├── Constants.swift │ │ │ ├── ImageURL.swift │ │ │ ├── Param.swift │ │ │ ├── Endpoint.swift │ │ │ └── Network.swift │ │ │ └── Models │ │ │ └── Movie.swift │ │ ├── Tests │ │ └── BackendTests │ │ │ ├── ImageURLTests.swift │ │ │ └── NetworkTests.swift │ │ └── Package.swift ├── .DS_Store ├── Assets │ └── Assets.xcassets │ │ ├── Contents.json │ │ ├── AccentColor.colorset │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ └── Contents.json ├── App │ ├── Root.swift │ ├── Detail │ │ └── MovieDetailView.swift │ └── Home │ │ ├── HomeContainerView.swift │ │ ├── HomeViewModel.swift │ │ └── HomeView.swift ├── MovieSwiftUI2.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── project.pbxproj ├── Tests iOS │ └── Tests_iOS.swift └── Tests macOS │ └── Tests_macOS.swift ├── .gitignore └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # MovieSwiftUI2 2 | A complete reinvention 3 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/README.md: -------------------------------------------------------------------------------- 1 | # UI 2 | 3 | Small, reusable UI component. 4 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/README.md: -------------------------------------------------------------------------------- 1 | # Backend 2 | 3 | This is the model and network layer. 4 | -------------------------------------------------------------------------------- /MovieSwiftUI2/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dimillian/MovieSwiftUI2/main/MovieSwiftUI2/.DS_Store -------------------------------------------------------------------------------- /MovieSwiftUI2/Assets/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Sources/UI/Colors/Colors.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | DerivedData/ 7 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 8 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | DerivedData/ 7 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 8 | -------------------------------------------------------------------------------- /MovieSwiftUI2/App/Root.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | @main 4 | struct Root: App { 5 | var body: some Scene { 6 | WindowGroup { 7 | HomeContainerView() 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Network/JSONModels/PaginatedResponse.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct PaginatedResponse: Codable { 4 | public let page: Int 5 | public let results: [T] 6 | } 7 | -------------------------------------------------------------------------------- /MovieSwiftUI2/MovieSwiftUI2.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Sources/UI/Colors/Colors.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | extension Color { 4 | static public var primaryBackground = Color("primaryBackgroundColor", 5 | bundle: .module) 6 | } 7 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Network/Constants.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @available(iOS 15.0, *) 4 | extension Network { 5 | public enum Constants { 6 | static let BASE_URL = URL(string: "https://api.themoviedb.org/3")! 7 | static let API_KEY = "1d9b898a212ea52e283351e521e17871" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /MovieSwiftUI2/MovieSwiftUI2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MovieSwiftUI2/App/Detail/MovieDetailView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | struct MovieDetailView: View { 4 | var body: some View { 5 | Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) 6 | } 7 | } 8 | 9 | struct MovieDetailView_Previews: PreviewProvider { 10 | static var previews: some View { 11 | MovieDetailView() 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Tests/UITests/UITests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import UI 3 | 4 | final class UITests: XCTestCase { 5 | func testExample() throws { 6 | // This is an example of a functional test case. 7 | // Use XCTAssert and related functions to verify your tests produce the correct 8 | // results. 9 | XCTAssertEqual(UI().text, "Hello, World!") 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Assets/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "display-p3", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x8B", 9 | "green" : "0x86", 10 | "red" : "0x53" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Network/ImageURL.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct ImageURL { 4 | public enum Constants { 5 | static let BASE_URL = URL(string: "https://image.tmdb.org/t/p")! 6 | } 7 | 8 | public enum size: String { 9 | case original 10 | case w500 11 | } 12 | 13 | public static func build(size: size, path: String) -> URL { 14 | var url = Constants.BASE_URL 15 | url.appendPathComponent(size.rawValue) 16 | url.appendPathComponent(path) 17 | return url 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Tests/BackendTests/ImageURLTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Backend 3 | 4 | @available(iOS 15.0, *) 5 | final class ImageURLTests: XCTestCase { 6 | func testURLBuilder() async { 7 | var result = URL(string: "https://image.tmdb.org/t/p/w500/path.jpg")! 8 | XCTAssertEqual(ImageURL.build(size: .w500, path: "path.jpg"), result) 9 | 10 | result = URL(string: "https://image.tmdb.org/t/p/original/path.jpg")! 11 | XCTAssertEqual(ImageURL.build(size: .original, path: "path.jpg"), result) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.5 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "Backend", 8 | platforms: [.iOS(.v14), .macOS(.v11), .tvOS(.v14)], 9 | products: [ 10 | .library( 11 | name: "Backend", 12 | targets: ["Backend"]), 13 | ], 14 | targets: [ 15 | .target( 16 | name: "Backend", 17 | dependencies: []), 18 | .testTarget( 19 | name: "BackendTests", 20 | dependencies: ["Backend"]), 21 | ] 22 | ) 23 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Network/Param.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | @available(iOS 15.0, *) 3 | extension Network { 4 | public enum Param { 5 | case page(page: Int) 6 | case region(region: String) 7 | case query(query: String) 8 | 9 | func build() -> URLQueryItem { 10 | switch self { 11 | case let .page(page): 12 | return .init(name: "page", value: String(page)) 13 | case let .region(region): 14 | return .init(name: "region", value: region) 15 | case let .query(query): 16 | return .init(name: "query", value: query) 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Sources/UI/StaticModels/MovieStatic.swift: -------------------------------------------------------------------------------- 1 | import Backend 2 | 3 | public let PLACEHODLER_MOVIE = Movie(id: 0, 4 | title: "Sample movie", 5 | posterPath: "/A0knvX7rlwTyZSKj8H5NiARb45.jpg", 6 | backdropPath: "/6MKr3KgOLmzOP6MSuZERO41Lpkt.jpg", 7 | overview: "A movie overview that can be long or not so long depending of the movie. This one is okay.", 8 | tagline: "Super scary movie", 9 | releaseDate: "2021-05-02") 10 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Tests/BackendTests/NetworkTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Backend 3 | 4 | @available(iOS 15.0, *) 5 | final class NetworkTests: XCTestCase { 6 | func testGET() async { 7 | let movies: PaginatedResponse = try! await Network.shared.GET(endpoint: .moviePopular) 8 | XCTAssertEqual(movies.results.count, 20) 9 | XCTAssertEqual(movies.page, 1) 10 | } 11 | 12 | func testGETPage2() async { 13 | let movies: PaginatedResponse = try! await Network.shared.GET(endpoint: .moviePopular, params: [.page(page: 2)]) 14 | XCTAssertEqual(movies.results.count, 20) 15 | XCTAssertEqual(movies.page, 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /MovieSwiftUI2/App/Home/HomeContainerView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | struct HomeContainerView: View { 4 | @StateObject var viewModel = HomeViewModel() 5 | 6 | var body: some View { 7 | NavigationView { 8 | HomeView(viewModel: viewModel) 9 | .searchable(text: $viewModel.searchText) 10 | .onReceive(viewModel.$searchText.debounce(for: 0.5, scheduler: DispatchQueue.main), 11 | perform: { query in 12 | async { 13 | await viewModel.fetchSearch(query: query) 14 | } 15 | }) 16 | } 17 | } 18 | } 19 | 20 | struct HomeContainerView_Previews: PreviewProvider { 21 | static var previews: some View { 22 | HomeContainerView() 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.5 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "UI", 8 | platforms: [.iOS(.v14), .macOS(.v11), .tvOS(.v14)], 9 | products: [ 10 | .library( 11 | name: "UI", 12 | targets: ["UI"]), 13 | ], 14 | dependencies: [ 15 | .package(name: "Backend", path: "./Backend"), 16 | ], 17 | targets: [ 18 | .target( 19 | name: "UI", 20 | dependencies: ["Backend"]), 21 | .testTarget( 22 | name: "UITests", 23 | dependencies: ["UI"]), 24 | ] 25 | ) 26 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Sources/UI/Colors/Colors.xcassets/primaryBackgroundColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "1.000", 9 | "green" : "1.000", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "1.000", 26 | "blue" : "0.161", 27 | "green" : "0.110", 28 | "red" : "0.118" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Network/Endpoint.swift: -------------------------------------------------------------------------------- 1 | @available(iOS 15.0, *) 2 | extension Network { 3 | public enum Endpoint { 4 | case moviePopular 5 | case topRated 6 | case upcoming 7 | case nowPlaying 8 | case trending(mediaType: MediaType, timeWindow: TimeWindow) 9 | case searchMovie 10 | 11 | public func build() -> String { 12 | switch self { 13 | case .moviePopular: 14 | return "movie/popular" 15 | case .topRated: 16 | return "movie/top_rated" 17 | case .nowPlaying: 18 | return "movie/now_playing" 19 | case .upcoming: 20 | return "movie/upcoming" 21 | case let .trending(mediaType, timeWindow): 22 | return "trending/\(mediaType.rawValue)/\(timeWindow.rawValue)" 23 | case .searchMovie: 24 | return "search/movie" 25 | } 26 | } 27 | } 28 | 29 | public enum MediaType: String { 30 | case all, movie, tv, person 31 | } 32 | 33 | public enum TimeWindow: String { 34 | case day, week 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Models/Movie.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Movie: Codable, Identifiable { 4 | public let id: Int 5 | public let title: String 6 | public let posterPath: String? 7 | public let backdropPath: String? 8 | public let overview: String? 9 | public let tagline: String? 10 | public let releaseDate: String? 11 | public var releaseDateAsDate: Date? { 12 | guard let releaseDate = releaseDate else { return nil } 13 | let formatter = DateFormatter() 14 | formatter.dateFormat = "yyyy-MM-dd" 15 | return formatter.date(from: releaseDate) 16 | } 17 | 18 | public init(id: Int, 19 | title: String, 20 | posterPath: String?, 21 | backdropPath: String?, 22 | overview: String?, 23 | tagline: String?, 24 | releaseDate: String?) { 25 | self.id = id 26 | self.title = title 27 | self.posterPath = posterPath 28 | self.backdropPath = backdropPath 29 | self.overview = overview 30 | self.tagline = tagline 31 | self.releaseDate = releaseDate 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/Backend/Sources/Backend/Network/Network.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @available(iOS 15.0, *) 4 | @available(macOS 12.0, *) 5 | @available(tvOS 15.0, *) 6 | public class Network { 7 | public static let shared = Network() 8 | private let decoder: JSONDecoder 9 | private let urlSession = URLSession.shared 10 | 11 | init() { 12 | let decoder = JSONDecoder() 13 | decoder.keyDecodingStrategy = .convertFromSnakeCase 14 | self.decoder = decoder 15 | } 16 | 17 | public func GET(endpoint: Endpoint, params: [Param]? = nil) async throws -> JSONModel { 18 | var request = buildRequest(endpoint, params: params) 19 | request.httpMethod = "GET" 20 | let (data, _) = try await urlSession.data(for: request, delegate: nil) 21 | let object = try decoder.decode(JSONModel.self, from: data) 22 | return object 23 | } 24 | 25 | private func buildRequest(_ endpoint: Endpoint, params: [Param]?) -> URLRequest { 26 | let url = buildURL(endpoint) 27 | var components = URLComponents(url: url, resolvingAgainstBaseURL: true)! 28 | components.queryItems = [ 29 | URLQueryItem(name: "api_key", value: Constants.API_KEY), 30 | URLQueryItem(name: "language", value: Locale.preferredLanguages[0]) 31 | ] 32 | if let params = params { 33 | components.queryItems?.append(contentsOf: params.map{ $0.build() }) 34 | } 35 | return URLRequest(url: components.url!) 36 | } 37 | 38 | private func buildURL(_ endpoint: Endpoint) -> URL { 39 | Constants.BASE_URL.appendingPathComponent(endpoint.build()) 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Tests iOS/Tests_iOS.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Tests_iOS.swift 3 | // Tests iOS 4 | // 5 | // Created by Thomas Ricouard on 12/06/2021. 6 | // 7 | 8 | import XCTest 9 | 10 | class Tests_iOS: XCTestCase { 11 | 12 | override func setUpWithError() throws { 13 | // Put setup code here. This method is called before the invocation of each test method in the class. 14 | 15 | // In UI tests it is usually best to stop immediately when a failure occurs. 16 | continueAfterFailure = false 17 | 18 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 19 | } 20 | 21 | override func tearDownWithError() throws { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | func testExample() throws { 26 | // UI tests must launch the application that they test. 27 | let app = XCUIApplication() 28 | app.launch() 29 | 30 | // Use recording to get started writing UI tests. 31 | // Use XCTAssert and related functions to verify your tests produce the correct results. 32 | } 33 | 34 | func testLaunchPerformance() throws { 35 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { 36 | // This measures how long it takes to launch your application. 37 | measure(metrics: [XCTApplicationLaunchMetric()]) { 38 | XCUIApplication().launch() 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Tests macOS/Tests_macOS.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Tests_macOS.swift 3 | // Tests macOS 4 | // 5 | // Created by Thomas Ricouard on 12/06/2021. 6 | // 7 | 8 | import XCTest 9 | 10 | class Tests_macOS: XCTestCase { 11 | 12 | override func setUpWithError() throws { 13 | // Put setup code here. This method is called before the invocation of each test method in the class. 14 | 15 | // In UI tests it is usually best to stop immediately when a failure occurs. 16 | continueAfterFailure = false 17 | 18 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 19 | } 20 | 21 | override func tearDownWithError() throws { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | func testExample() throws { 26 | // UI tests must launch the application that they test. 27 | let app = XCUIApplication() 28 | app.launch() 29 | 30 | // Use recording to get started writing UI tests. 31 | // Use XCTAssert and related functions to verify your tests produce the correct results. 32 | } 33 | 34 | func testLaunchPerformance() throws { 35 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { 36 | // This measures how long it takes to launch your application. 37 | measure(metrics: [XCTApplicationLaunchMetric()]) { 38 | XCUIApplication().launch() 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MovieSwiftUI2/App/Home/HomeViewModel.swift: -------------------------------------------------------------------------------- 1 | 2 | import Foundation 3 | import SwiftUI 4 | import Backend 5 | 6 | @MainActor 7 | class HomeViewModel: ObservableObject { 8 | struct Section: Identifiable { 9 | let id = UUID() 10 | let title: String 11 | let movies: [Movie] 12 | } 13 | 14 | @Published var sections: [Section] = [] 15 | @Published var searchResults: [Movie] = [] 16 | @Published var error: Error? 17 | @Published var searchText = "" 18 | 19 | init() { 20 | async { 21 | await fetchData() 22 | } 23 | } 24 | 25 | func fetchData() async { 26 | do { 27 | async let popularMovies: PaginatedResponse = Network.shared.GET(endpoint: .moviePopular) 28 | async let trendingMovies: PaginatedResponse = Network.shared.GET(endpoint: .trending(mediaType: .movie, 29 | timeWindow: .week)) 30 | async let topRatedMovies: PaginatedResponse = Network.shared.GET(endpoint: .topRated) 31 | async let nowPlayingMovies: PaginatedResponse = Network.shared.GET(endpoint: .nowPlaying) 32 | async let upcomingMovies: PaginatedResponse = Network.shared.GET(endpoint: .upcoming) 33 | self.sections = try await [.init(title: "Popular", movies: popularMovies.results), 34 | .init(title: "Trending", movies: trendingMovies.results), 35 | .init(title: "Top Rated", movies: topRatedMovies.results), 36 | .init(title: "Now Playing", movies: nowPlayingMovies.results), 37 | .init(title: "Upcoming", movies: upcomingMovies.results)] 38 | } catch let error { 39 | self.error = error 40 | } 41 | } 42 | 43 | func fetchSearch(query: String) async { 44 | do { 45 | let results: PaginatedResponse = try await Network.shared.GET(endpoint: .searchMovie, params: [.query(query: query)]) 46 | searchResults = results.results 47 | } catch {} 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /MovieSwiftUI2/App/Home/HomeView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import Backend 3 | import UI 4 | 5 | struct HomeView: View { 6 | @Environment(\.isSearching) var isSearching: Bool 7 | @ObservedObject var viewModel: HomeViewModel 8 | 9 | var body: some View { 10 | List { 11 | if isSearching { 12 | searchResultsView 13 | } else { 14 | if viewModel.sections.isEmpty { 15 | loadView 16 | } else { 17 | ForEach(viewModel.sections) { section in 18 | makeSection(title: section.title, movies: section.movies) 19 | } 20 | } 21 | } 22 | } 23 | .background(Color.primaryBackground) 24 | .listStyle(.plain) 25 | .listRowSeparator(.hidden) 26 | .refreshable { 27 | await viewModel.fetchData() 28 | } 29 | .navigationTitle("Movies") 30 | } 31 | 32 | 33 | private var loadView: some View { 34 | HStack { 35 | Spacer() 36 | ProgressView() 37 | .frame(width: 200, height: 200) 38 | Spacer() 39 | } 40 | } 41 | 42 | private var searchResultsView: some View { 43 | ForEach(viewModel.searchResults) { movie in 44 | Text(movie.title) 45 | } 46 | } 47 | 48 | private func makeSection(title: String, movies: [Movie]) -> some View { 49 | Section(header: Text(title) 50 | .font(.title) 51 | .fontWeight(.bold), 52 | content: { 53 | ScrollView(.horizontal, showsIndicators: false) { 54 | LazyHStack(alignment: .center, spacing: 32) { 55 | ForEach(movies) { movie in 56 | NavigationLink { 57 | MovieDetailView() 58 | } label: { 59 | MovieCarrouselView(movie: movie) 60 | } 61 | .buttonStyle(.plain) 62 | } 63 | } 64 | .padding(.horizontal, 16) 65 | .padding(.vertical, 8) 66 | } 67 | .listRowInsets(EdgeInsets()) 68 | .listRowBackground(Color.primaryBackground) 69 | }) 70 | } 71 | } 72 | 73 | struct HomrView_Previews: PreviewProvider { 74 | static var previews: some View { 75 | HomeView(viewModel: HomeViewModel()) 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Packages/UI/Sources/UI/Movies/MovieCarrouselView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import Backend 3 | 4 | @available(iOS 15.0, *) 5 | public struct MovieCarrouselView: View { 6 | public let movie: Movie 7 | 8 | public init(movie: Movie) { 9 | self.movie = movie 10 | } 11 | 12 | private var backdropView: some View { 13 | ZStack { 14 | if let backdropPath = movie.backdropPath { 15 | AsyncImage(url: ImageURL.build(size: .original, 16 | path: backdropPath), 17 | content: { 18 | image in 19 | image.resizable() 20 | .aspectRatio(contentMode: .fill) 21 | .blur(radius: 4, opaque: false) 22 | }, placeholder: { 23 | Rectangle() 24 | .fill(Color.gray) 25 | }) 26 | } 27 | Color.black.opacity(0.5) 28 | } 29 | .frame(width: 270) 30 | .clipShape(RoundedRectangle(cornerRadius: 16)) 31 | } 32 | 33 | public var body: some View { 34 | HStack(alignment: .center) { 35 | if let posterPath = movie.posterPath { 36 | AsyncImage(url: ImageURL.build(size: .w500, path: posterPath), 37 | content: { 38 | image in 39 | image.resizable() 40 | .aspectRatio(contentMode: .fit) 41 | }, placeholder: { 42 | Rectangle() 43 | .fill(Color.gray) 44 | }) 45 | .clipShape(RoundedRectangle(cornerRadius: 4)) 46 | .frame(width: 80, height: 120) 47 | .padding(8) 48 | } 49 | VStack(alignment: .leading, spacing: 8) { 50 | Text(movie.title) 51 | .font(.title3) 52 | .fontWeight(.bold) 53 | .foregroundColor(.white) 54 | .lineLimit(3) 55 | if let releaseDate = movie.releaseDateAsDate { 56 | Text(releaseDate, style: .date) 57 | .font(.footnote) 58 | .foregroundColor(.white) 59 | } 60 | Spacer() 61 | } 62 | .padding(.top, 8) 63 | Spacer() 64 | } 65 | .padding(8) 66 | .frame(width: 270, height: 150) 67 | .background { 68 | backdropView 69 | } 70 | .shadow(color: .black, radius: 4) 71 | } 72 | } 73 | 74 | @available(iOS 15.0, *) 75 | struct MovieCarrouselView_Previews: PreviewProvider { 76 | static var previews: some View { 77 | MovieCarrouselView(movie: PLACEHODLER_MOVIE) 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | # Package.pins 42 | # Package.resolved 43 | # *.xcodeproj 44 | # 45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 46 | # hence it is not needed unless you have added a package configuration file to your project 47 | # .swiftpm 48 | 49 | .build/ 50 | 51 | # CocoaPods 52 | # 53 | # We recommend against adding the Pods directory to your .gitignore. However 54 | # you should judge for yourself, the pros and cons are mentioned at: 55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 56 | # 57 | # Pods/ 58 | # 59 | # Add this line if you want to avoid checking in source code from the Xcode workspace 60 | # *.xcworkspace 61 | 62 | # Carthage 63 | # 64 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 65 | # Carthage/Checkouts 66 | 67 | Carthage/Build/ 68 | 69 | # Accio dependency management 70 | Dependencies/ 71 | .accio/ 72 | 73 | # fastlane 74 | # 75 | # It is recommended to not store the screenshots in the git repo. 76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 77 | # For more information about the recommended setup visit: 78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 79 | 80 | fastlane/report.xml 81 | fastlane/Preview.html 82 | fastlane/screenshots/**/*.png 83 | fastlane/test_output 84 | 85 | # Code Injection 86 | # 87 | # After new code Injection tools there's a generated folder /iOSInjectionProject 88 | # https://github.com/johnno1962/injectionforxcode 89 | 90 | iOSInjectionProject/ 91 | -------------------------------------------------------------------------------- /MovieSwiftUI2/Assets/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | }, 93 | { 94 | "idiom" : "mac", 95 | "scale" : "1x", 96 | "size" : "16x16" 97 | }, 98 | { 99 | "idiom" : "mac", 100 | "scale" : "2x", 101 | "size" : "16x16" 102 | }, 103 | { 104 | "idiom" : "mac", 105 | "scale" : "1x", 106 | "size" : "32x32" 107 | }, 108 | { 109 | "idiom" : "mac", 110 | "scale" : "2x", 111 | "size" : "32x32" 112 | }, 113 | { 114 | "idiom" : "mac", 115 | "scale" : "1x", 116 | "size" : "128x128" 117 | }, 118 | { 119 | "idiom" : "mac", 120 | "scale" : "2x", 121 | "size" : "128x128" 122 | }, 123 | { 124 | "idiom" : "mac", 125 | "scale" : "1x", 126 | "size" : "256x256" 127 | }, 128 | { 129 | "idiom" : "mac", 130 | "scale" : "2x", 131 | "size" : "256x256" 132 | }, 133 | { 134 | "idiom" : "mac", 135 | "scale" : "1x", 136 | "size" : "512x512" 137 | }, 138 | { 139 | "idiom" : "mac", 140 | "scale" : "2x", 141 | "size" : "512x512" 142 | } 143 | ], 144 | "info" : { 145 | "author" : "xcode", 146 | "version" : 1 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /MovieSwiftUI2/MovieSwiftUI2.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 55; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9F243EC82675E3D50041FDE4 /* MovieDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F243EC72675E3D50041FDE4 /* MovieDetailView.swift */; }; 11 | 9FE9850426747D4000FD0138 /* Tests_iOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE9850326747D4000FD0138 /* Tests_iOS.swift */; }; 12 | 9FE9850E26747D4000FD0138 /* Tests_macOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE9850D26747D4000FD0138 /* Tests_macOS.swift */; }; 13 | 9FE9850F26747D4000FD0138 /* Root.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE984ED26747D3F00FD0138 /* Root.swift */; }; 14 | 9FE9851026747D4000FD0138 /* Root.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE984ED26747D3F00FD0138 /* Root.swift */; }; 15 | 9FE9851126747D4000FD0138 /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE984EE26747D3F00FD0138 /* HomeView.swift */; }; 16 | 9FE9851226747D4000FD0138 /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE984EE26747D3F00FD0138 /* HomeView.swift */; }; 17 | 9FE9851326747D4000FD0138 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9FE984EF26747D4000FD0138 /* Assets.xcassets */; }; 18 | 9FE9851426747D4000FD0138 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9FE984EF26747D4000FD0138 /* Assets.xcassets */; }; 19 | 9FE985282674900E00FD0138 /* HomeViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE985272674900E00FD0138 /* HomeViewModel.swift */; }; 20 | 9FE985292674900E00FD0138 /* HomeViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FE985272674900E00FD0138 /* HomeViewModel.swift */; }; 21 | 9FE9852C267490DB00FD0138 /* Backend in Frameworks */ = {isa = PBXBuildFile; productRef = 9FE9852B267490DB00FD0138 /* Backend */; }; 22 | 9FE9852E267490DB00FD0138 /* UI in Frameworks */ = {isa = PBXBuildFile; productRef = 9FE9852D267490DB00FD0138 /* UI */; }; 23 | 9FEA0D3B267557B4006173B7 /* HomeContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FEA0D3A267557B4006173B7 /* HomeContainerView.swift */; }; 24 | 9FEA0D3C267557B4006173B7 /* HomeContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FEA0D3A267557B4006173B7 /* HomeContainerView.swift */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 9FE9850026747D4000FD0138 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 9FE984E826747D3F00FD0138 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 9FE984F326747D4000FD0138; 33 | remoteInfo = "MovieSwiftUI2 (iOS)"; 34 | }; 35 | 9FE9850A26747D4000FD0138 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 9FE984E826747D3F00FD0138 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = 9FE984F926747D4000FD0138; 40 | remoteInfo = "MovieSwiftUI2 (macOS)"; 41 | }; 42 | /* End PBXContainerItemProxy section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 9F243EC72675E3D50041FDE4 /* MovieDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MovieDetailView.swift; sourceTree = ""; }; 46 | 9FE984ED26747D3F00FD0138 /* Root.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Root.swift; sourceTree = ""; }; 47 | 9FE984EE26747D3F00FD0138 /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = ""; }; 48 | 9FE984EF26747D4000FD0138 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 49 | 9FE984F426747D4000FD0138 /* MovieSwiftUI2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MovieSwiftUI2.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 9FE984FA26747D4000FD0138 /* MovieSwiftUI2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MovieSwiftUI2.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 9FE984FF26747D4000FD0138 /* Tests iOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Tests iOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 9FE9850326747D4000FD0138 /* Tests_iOS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests_iOS.swift; sourceTree = ""; }; 53 | 9FE9850926747D4000FD0138 /* Tests macOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Tests macOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 9FE9850D26747D4000FD0138 /* Tests_macOS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests_macOS.swift; sourceTree = ""; }; 55 | 9FE9852326747D7B00FD0138 /* Backend */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Backend; path = Packages/Backend; sourceTree = ""; }; 56 | 9FE9852426747D8A00FD0138 /* UI */ = {isa = PBXFileReference; lastKnownFileType = folder; name = UI; path = Packages/UI; sourceTree = ""; }; 57 | 9FE985272674900E00FD0138 /* HomeViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewModel.swift; sourceTree = ""; }; 58 | 9FEA0D3A267557B4006173B7 /* HomeContainerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeContainerView.swift; sourceTree = ""; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 9FE984F126747D4000FD0138 /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 9FE9852E267490DB00FD0138 /* UI in Frameworks */, 67 | 9FE9852C267490DB00FD0138 /* Backend in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | 9FE984F726747D4000FD0138 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | 9FE984FC26747D4000FD0138 /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | 9FE9850626747D4000FD0138 /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 9F243EC62675E3C20041FDE4 /* Detail */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 9F243EC72675E3D50041FDE4 /* MovieDetailView.swift */, 99 | ); 100 | path = Detail; 101 | sourceTree = ""; 102 | }; 103 | 9FE984E726747D3F00FD0138 = { 104 | isa = PBXGroup; 105 | children = ( 106 | 9FE9852526747E7100FD0138 /* App */, 107 | 9FE984EC26747D3F00FD0138 /* Assets */, 108 | 9FE9850226747D4000FD0138 /* Tests iOS */, 109 | 9FE9850C26747D4000FD0138 /* Tests macOS */, 110 | 9FE9852426747D8A00FD0138 /* UI */, 111 | 9FE9852326747D7B00FD0138 /* Backend */, 112 | 9FE984F526747D4000FD0138 /* Products */, 113 | 9FE9852A267490DB00FD0138 /* Frameworks */, 114 | ); 115 | sourceTree = ""; 116 | }; 117 | 9FE984EC26747D3F00FD0138 /* Assets */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 9FE984EF26747D4000FD0138 /* Assets.xcassets */, 121 | ); 122 | path = Assets; 123 | sourceTree = ""; 124 | }; 125 | 9FE984F526747D4000FD0138 /* Products */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 9FE984F426747D4000FD0138 /* MovieSwiftUI2.app */, 129 | 9FE984FA26747D4000FD0138 /* MovieSwiftUI2.app */, 130 | 9FE984FF26747D4000FD0138 /* Tests iOS.xctest */, 131 | 9FE9850926747D4000FD0138 /* Tests macOS.xctest */, 132 | ); 133 | name = Products; 134 | sourceTree = ""; 135 | }; 136 | 9FE9850226747D4000FD0138 /* Tests iOS */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 9FE9850326747D4000FD0138 /* Tests_iOS.swift */, 140 | ); 141 | path = "Tests iOS"; 142 | sourceTree = ""; 143 | }; 144 | 9FE9850C26747D4000FD0138 /* Tests macOS */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 9FE9850D26747D4000FD0138 /* Tests_macOS.swift */, 148 | ); 149 | path = "Tests macOS"; 150 | sourceTree = ""; 151 | }; 152 | 9FE9852526747E7100FD0138 /* App */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 9F243EC62675E3C20041FDE4 /* Detail */, 156 | 9FE9852626747E7B00FD0138 /* Home */, 157 | 9FE984ED26747D3F00FD0138 /* Root.swift */, 158 | ); 159 | path = App; 160 | sourceTree = ""; 161 | }; 162 | 9FE9852626747E7B00FD0138 /* Home */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | 9FEA0D3A267557B4006173B7 /* HomeContainerView.swift */, 166 | 9FE984EE26747D3F00FD0138 /* HomeView.swift */, 167 | 9FE985272674900E00FD0138 /* HomeViewModel.swift */, 168 | ); 169 | path = Home; 170 | sourceTree = ""; 171 | }; 172 | 9FE9852A267490DB00FD0138 /* Frameworks */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | ); 176 | name = Frameworks; 177 | sourceTree = ""; 178 | }; 179 | /* End PBXGroup section */ 180 | 181 | /* Begin PBXNativeTarget section */ 182 | 9FE984F326747D4000FD0138 /* MovieSwiftUI2 (iOS) */ = { 183 | isa = PBXNativeTarget; 184 | buildConfigurationList = 9FE9851726747D4000FD0138 /* Build configuration list for PBXNativeTarget "MovieSwiftUI2 (iOS)" */; 185 | buildPhases = ( 186 | 9FE984F026747D4000FD0138 /* Sources */, 187 | 9FE984F126747D4000FD0138 /* Frameworks */, 188 | 9FE984F226747D4000FD0138 /* Resources */, 189 | ); 190 | buildRules = ( 191 | ); 192 | dependencies = ( 193 | ); 194 | name = "MovieSwiftUI2 (iOS)"; 195 | packageProductDependencies = ( 196 | 9FE9852B267490DB00FD0138 /* Backend */, 197 | 9FE9852D267490DB00FD0138 /* UI */, 198 | ); 199 | productName = "MovieSwiftUI2 (iOS)"; 200 | productReference = 9FE984F426747D4000FD0138 /* MovieSwiftUI2.app */; 201 | productType = "com.apple.product-type.application"; 202 | }; 203 | 9FE984F926747D4000FD0138 /* MovieSwiftUI2 (macOS) */ = { 204 | isa = PBXNativeTarget; 205 | buildConfigurationList = 9FE9851A26747D4000FD0138 /* Build configuration list for PBXNativeTarget "MovieSwiftUI2 (macOS)" */; 206 | buildPhases = ( 207 | 9FE984F626747D4000FD0138 /* Sources */, 208 | 9FE984F726747D4000FD0138 /* Frameworks */, 209 | 9FE984F826747D4000FD0138 /* Resources */, 210 | ); 211 | buildRules = ( 212 | ); 213 | dependencies = ( 214 | ); 215 | name = "MovieSwiftUI2 (macOS)"; 216 | productName = "MovieSwiftUI2 (macOS)"; 217 | productReference = 9FE984FA26747D4000FD0138 /* MovieSwiftUI2.app */; 218 | productType = "com.apple.product-type.application"; 219 | }; 220 | 9FE984FE26747D4000FD0138 /* Tests iOS */ = { 221 | isa = PBXNativeTarget; 222 | buildConfigurationList = 9FE9851D26747D4000FD0138 /* Build configuration list for PBXNativeTarget "Tests iOS" */; 223 | buildPhases = ( 224 | 9FE984FB26747D4000FD0138 /* Sources */, 225 | 9FE984FC26747D4000FD0138 /* Frameworks */, 226 | 9FE984FD26747D4000FD0138 /* Resources */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | 9FE9850126747D4000FD0138 /* PBXTargetDependency */, 232 | ); 233 | name = "Tests iOS"; 234 | productName = "Tests iOS"; 235 | productReference = 9FE984FF26747D4000FD0138 /* Tests iOS.xctest */; 236 | productType = "com.apple.product-type.bundle.ui-testing"; 237 | }; 238 | 9FE9850826747D4000FD0138 /* Tests macOS */ = { 239 | isa = PBXNativeTarget; 240 | buildConfigurationList = 9FE9852026747D4000FD0138 /* Build configuration list for PBXNativeTarget "Tests macOS" */; 241 | buildPhases = ( 242 | 9FE9850526747D4000FD0138 /* Sources */, 243 | 9FE9850626747D4000FD0138 /* Frameworks */, 244 | 9FE9850726747D4000FD0138 /* Resources */, 245 | ); 246 | buildRules = ( 247 | ); 248 | dependencies = ( 249 | 9FE9850B26747D4000FD0138 /* PBXTargetDependency */, 250 | ); 251 | name = "Tests macOS"; 252 | productName = "Tests macOS"; 253 | productReference = 9FE9850926747D4000FD0138 /* Tests macOS.xctest */; 254 | productType = "com.apple.product-type.bundle.ui-testing"; 255 | }; 256 | /* End PBXNativeTarget section */ 257 | 258 | /* Begin PBXProject section */ 259 | 9FE984E826747D3F00FD0138 /* Project object */ = { 260 | isa = PBXProject; 261 | attributes = { 262 | BuildIndependentTargetsInParallel = 1; 263 | LastSwiftUpdateCheck = 1300; 264 | LastUpgradeCheck = 1300; 265 | TargetAttributes = { 266 | 9FE984F326747D4000FD0138 = { 267 | CreatedOnToolsVersion = 13.0; 268 | }; 269 | 9FE984F926747D4000FD0138 = { 270 | CreatedOnToolsVersion = 13.0; 271 | }; 272 | 9FE984FE26747D4000FD0138 = { 273 | CreatedOnToolsVersion = 13.0; 274 | TestTargetID = 9FE984F326747D4000FD0138; 275 | }; 276 | 9FE9850826747D4000FD0138 = { 277 | CreatedOnToolsVersion = 13.0; 278 | TestTargetID = 9FE984F926747D4000FD0138; 279 | }; 280 | }; 281 | }; 282 | buildConfigurationList = 9FE984EB26747D3F00FD0138 /* Build configuration list for PBXProject "MovieSwiftUI2" */; 283 | compatibilityVersion = "Xcode 13.0"; 284 | developmentRegion = en; 285 | hasScannedForEncodings = 0; 286 | knownRegions = ( 287 | en, 288 | Base, 289 | ); 290 | mainGroup = 9FE984E726747D3F00FD0138; 291 | productRefGroup = 9FE984F526747D4000FD0138 /* Products */; 292 | projectDirPath = ""; 293 | projectRoot = ""; 294 | targets = ( 295 | 9FE984F326747D4000FD0138 /* MovieSwiftUI2 (iOS) */, 296 | 9FE984F926747D4000FD0138 /* MovieSwiftUI2 (macOS) */, 297 | 9FE984FE26747D4000FD0138 /* Tests iOS */, 298 | 9FE9850826747D4000FD0138 /* Tests macOS */, 299 | ); 300 | }; 301 | /* End PBXProject section */ 302 | 303 | /* Begin PBXResourcesBuildPhase section */ 304 | 9FE984F226747D4000FD0138 /* Resources */ = { 305 | isa = PBXResourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | 9FE9851326747D4000FD0138 /* Assets.xcassets in Resources */, 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | 9FE984F826747D4000FD0138 /* Resources */ = { 313 | isa = PBXResourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | 9FE9851426747D4000FD0138 /* Assets.xcassets in Resources */, 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | }; 320 | 9FE984FD26747D4000FD0138 /* Resources */ = { 321 | isa = PBXResourcesBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | 9FE9850726747D4000FD0138 /* Resources */ = { 328 | isa = PBXResourcesBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | }; 334 | /* End PBXResourcesBuildPhase section */ 335 | 336 | /* Begin PBXSourcesBuildPhase section */ 337 | 9FE984F026747D4000FD0138 /* Sources */ = { 338 | isa = PBXSourcesBuildPhase; 339 | buildActionMask = 2147483647; 340 | files = ( 341 | 9F243EC82675E3D50041FDE4 /* MovieDetailView.swift in Sources */, 342 | 9FE9851126747D4000FD0138 /* HomeView.swift in Sources */, 343 | 9FEA0D3B267557B4006173B7 /* HomeContainerView.swift in Sources */, 344 | 9FE985282674900E00FD0138 /* HomeViewModel.swift in Sources */, 345 | 9FE9850F26747D4000FD0138 /* Root.swift in Sources */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | 9FE984F626747D4000FD0138 /* Sources */ = { 350 | isa = PBXSourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | 9FE9851226747D4000FD0138 /* HomeView.swift in Sources */, 354 | 9FEA0D3C267557B4006173B7 /* HomeContainerView.swift in Sources */, 355 | 9FE985292674900E00FD0138 /* HomeViewModel.swift in Sources */, 356 | 9FE9851026747D4000FD0138 /* Root.swift in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | 9FE984FB26747D4000FD0138 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 9FE9850426747D4000FD0138 /* Tests_iOS.swift in Sources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | 9FE9850526747D4000FD0138 /* Sources */ = { 369 | isa = PBXSourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | 9FE9850E26747D4000FD0138 /* Tests_macOS.swift in Sources */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | /* End PBXSourcesBuildPhase section */ 377 | 378 | /* Begin PBXTargetDependency section */ 379 | 9FE9850126747D4000FD0138 /* PBXTargetDependency */ = { 380 | isa = PBXTargetDependency; 381 | target = 9FE984F326747D4000FD0138 /* MovieSwiftUI2 (iOS) */; 382 | targetProxy = 9FE9850026747D4000FD0138 /* PBXContainerItemProxy */; 383 | }; 384 | 9FE9850B26747D4000FD0138 /* PBXTargetDependency */ = { 385 | isa = PBXTargetDependency; 386 | target = 9FE984F926747D4000FD0138 /* MovieSwiftUI2 (macOS) */; 387 | targetProxy = 9FE9850A26747D4000FD0138 /* PBXContainerItemProxy */; 388 | }; 389 | /* End PBXTargetDependency section */ 390 | 391 | /* Begin XCBuildConfiguration section */ 392 | 9FE9851526747D4000FD0138 /* Debug */ = { 393 | isa = XCBuildConfiguration; 394 | buildSettings = { 395 | ALWAYS_SEARCH_USER_PATHS = NO; 396 | CLANG_ANALYZER_NONNULL = YES; 397 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 398 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 399 | CLANG_CXX_LIBRARY = "libc++"; 400 | CLANG_ENABLE_MODULES = YES; 401 | CLANG_ENABLE_OBJC_ARC = YES; 402 | CLANG_ENABLE_OBJC_WEAK = YES; 403 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 404 | CLANG_WARN_BOOL_CONVERSION = YES; 405 | CLANG_WARN_COMMA = YES; 406 | CLANG_WARN_CONSTANT_CONVERSION = YES; 407 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 409 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 410 | CLANG_WARN_EMPTY_BODY = YES; 411 | CLANG_WARN_ENUM_CONVERSION = YES; 412 | CLANG_WARN_INFINITE_RECURSION = YES; 413 | CLANG_WARN_INT_CONVERSION = YES; 414 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 415 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 416 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 417 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 418 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 419 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 420 | CLANG_WARN_STRICT_PROTOTYPES = YES; 421 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 422 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 423 | CLANG_WARN_UNREACHABLE_CODE = YES; 424 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 425 | COPY_PHASE_STRIP = NO; 426 | DEBUG_INFORMATION_FORMAT = dwarf; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | ENABLE_TESTABILITY = YES; 429 | GCC_C_LANGUAGE_STANDARD = gnu11; 430 | GCC_DYNAMIC_NO_PIC = NO; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 439 | GCC_WARN_UNDECLARED_SELECTOR = YES; 440 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 441 | GCC_WARN_UNUSED_FUNCTION = YES; 442 | GCC_WARN_UNUSED_VARIABLE = YES; 443 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 444 | MTL_FAST_MATH = YES; 445 | ONLY_ACTIVE_ARCH = YES; 446 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 447 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 448 | }; 449 | name = Debug; 450 | }; 451 | 9FE9851626747D4000FD0138 /* Release */ = { 452 | isa = XCBuildConfiguration; 453 | buildSettings = { 454 | ALWAYS_SEARCH_USER_PATHS = NO; 455 | CLANG_ANALYZER_NONNULL = YES; 456 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 457 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 458 | CLANG_CXX_LIBRARY = "libc++"; 459 | CLANG_ENABLE_MODULES = YES; 460 | CLANG_ENABLE_OBJC_ARC = YES; 461 | CLANG_ENABLE_OBJC_WEAK = YES; 462 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 463 | CLANG_WARN_BOOL_CONVERSION = YES; 464 | CLANG_WARN_COMMA = YES; 465 | CLANG_WARN_CONSTANT_CONVERSION = YES; 466 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 467 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 468 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 469 | CLANG_WARN_EMPTY_BODY = YES; 470 | CLANG_WARN_ENUM_CONVERSION = YES; 471 | CLANG_WARN_INFINITE_RECURSION = YES; 472 | CLANG_WARN_INT_CONVERSION = YES; 473 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 474 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 475 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 476 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 477 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 478 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 479 | CLANG_WARN_STRICT_PROTOTYPES = YES; 480 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 481 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 482 | CLANG_WARN_UNREACHABLE_CODE = YES; 483 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 484 | COPY_PHASE_STRIP = NO; 485 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 486 | ENABLE_NS_ASSERTIONS = NO; 487 | ENABLE_STRICT_OBJC_MSGSEND = YES; 488 | GCC_C_LANGUAGE_STANDARD = gnu11; 489 | GCC_NO_COMMON_BLOCKS = YES; 490 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 491 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 492 | GCC_WARN_UNDECLARED_SELECTOR = YES; 493 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 494 | GCC_WARN_UNUSED_FUNCTION = YES; 495 | GCC_WARN_UNUSED_VARIABLE = YES; 496 | MTL_ENABLE_DEBUG_INFO = NO; 497 | MTL_FAST_MATH = YES; 498 | SWIFT_COMPILATION_MODE = wholemodule; 499 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 500 | }; 501 | name = Release; 502 | }; 503 | 9FE9851826747D4000FD0138 /* Debug */ = { 504 | isa = XCBuildConfiguration; 505 | buildSettings = { 506 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 507 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 508 | CODE_SIGN_STYLE = Automatic; 509 | CURRENT_PROJECT_VERSION = 1; 510 | DEVELOPMENT_TEAM = Z6P74P6T99; 511 | ENABLE_PREVIEWS = YES; 512 | GENERATE_INFOPLIST_FILE = YES; 513 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 514 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 515 | INFOPLIST_KEY_UILaunchScreen_Generation = YES; 516 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 517 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 518 | IPHONEOS_DEPLOYMENT_TARGET = 15.0; 519 | LD_RUNPATH_SEARCH_PATHS = ( 520 | "$(inherited)", 521 | "@executable_path/Frameworks", 522 | ); 523 | MARKETING_VERSION = 1.0; 524 | PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.MovieSwiftUI2; 525 | PRODUCT_NAME = MovieSwiftUI2; 526 | SDKROOT = iphoneos; 527 | SWIFT_EMIT_LOC_STRINGS = YES; 528 | SWIFT_VERSION = 5.0; 529 | TARGETED_DEVICE_FAMILY = "1,2"; 530 | }; 531 | name = Debug; 532 | }; 533 | 9FE9851926747D4000FD0138 /* Release */ = { 534 | isa = XCBuildConfiguration; 535 | buildSettings = { 536 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 537 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 538 | CODE_SIGN_STYLE = Automatic; 539 | CURRENT_PROJECT_VERSION = 1; 540 | DEVELOPMENT_TEAM = Z6P74P6T99; 541 | ENABLE_PREVIEWS = YES; 542 | GENERATE_INFOPLIST_FILE = YES; 543 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 544 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 545 | INFOPLIST_KEY_UILaunchScreen_Generation = YES; 546 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 547 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 548 | IPHONEOS_DEPLOYMENT_TARGET = 15.0; 549 | LD_RUNPATH_SEARCH_PATHS = ( 550 | "$(inherited)", 551 | "@executable_path/Frameworks", 552 | ); 553 | MARKETING_VERSION = 1.0; 554 | PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.MovieSwiftUI2; 555 | PRODUCT_NAME = MovieSwiftUI2; 556 | SDKROOT = iphoneos; 557 | SWIFT_EMIT_LOC_STRINGS = YES; 558 | SWIFT_VERSION = 5.0; 559 | TARGETED_DEVICE_FAMILY = "1,2"; 560 | VALIDATE_PRODUCT = YES; 561 | }; 562 | name = Release; 563 | }; 564 | 9FE9851B26747D4000FD0138 /* Debug */ = { 565 | isa = XCBuildConfiguration; 566 | buildSettings = { 567 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 568 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 569 | CODE_SIGN_STYLE = Automatic; 570 | COMBINE_HIDPI_IMAGES = YES; 571 | CURRENT_PROJECT_VERSION = 1; 572 | DEVELOPMENT_TEAM = Z6P74P6T99; 573 | ENABLE_APP_SANDBOX = YES; 574 | ENABLE_HARDENED_RUNTIME = YES; 575 | ENABLE_PREVIEWS = YES; 576 | ENABLE_USER_SELECTED_FILES = readonly; 577 | GENERATE_INFOPLIST_FILE = YES; 578 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 579 | LD_RUNPATH_SEARCH_PATHS = ( 580 | "$(inherited)", 581 | "@executable_path/../Frameworks", 582 | ); 583 | MACOSX_DEPLOYMENT_TARGET = 11.0; 584 | MARKETING_VERSION = 1.0; 585 | PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.MovieSwiftUI2; 586 | PRODUCT_NAME = MovieSwiftUI2; 587 | SDKROOT = macosx; 588 | SWIFT_EMIT_LOC_STRINGS = YES; 589 | SWIFT_VERSION = 5.0; 590 | }; 591 | name = Debug; 592 | }; 593 | 9FE9851C26747D4000FD0138 /* Release */ = { 594 | isa = XCBuildConfiguration; 595 | buildSettings = { 596 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 597 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 598 | CODE_SIGN_STYLE = Automatic; 599 | COMBINE_HIDPI_IMAGES = YES; 600 | CURRENT_PROJECT_VERSION = 1; 601 | DEVELOPMENT_TEAM = Z6P74P6T99; 602 | ENABLE_APP_SANDBOX = YES; 603 | ENABLE_HARDENED_RUNTIME = YES; 604 | ENABLE_PREVIEWS = YES; 605 | ENABLE_USER_SELECTED_FILES = readonly; 606 | GENERATE_INFOPLIST_FILE = YES; 607 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 608 | LD_RUNPATH_SEARCH_PATHS = ( 609 | "$(inherited)", 610 | "@executable_path/../Frameworks", 611 | ); 612 | MACOSX_DEPLOYMENT_TARGET = 11.0; 613 | MARKETING_VERSION = 1.0; 614 | PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.MovieSwiftUI2; 615 | PRODUCT_NAME = MovieSwiftUI2; 616 | SDKROOT = macosx; 617 | SWIFT_EMIT_LOC_STRINGS = YES; 618 | SWIFT_VERSION = 5.0; 619 | }; 620 | name = Release; 621 | }; 622 | 9FE9851E26747D4000FD0138 /* Debug */ = { 623 | isa = XCBuildConfiguration; 624 | buildSettings = { 625 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 626 | CODE_SIGN_STYLE = Automatic; 627 | CURRENT_PROJECT_VERSION = 1; 628 | DEVELOPMENT_TEAM = Z6P74P6T99; 629 | GENERATE_INFOPLIST_FILE = YES; 630 | IPHONEOS_DEPLOYMENT_TARGET = 15.0; 631 | LD_RUNPATH_SEARCH_PATHS = ( 632 | "$(inherited)", 633 | "@executable_path/Frameworks", 634 | "@loader_path/Frameworks", 635 | ); 636 | MARKETING_VERSION = 1.0; 637 | PRODUCT_BUNDLE_IDENTIFIER = "com.thomasricouard.Tests-iOS"; 638 | PRODUCT_NAME = "$(TARGET_NAME)"; 639 | SDKROOT = iphoneos; 640 | SWIFT_EMIT_LOC_STRINGS = NO; 641 | SWIFT_VERSION = 5.0; 642 | TARGETED_DEVICE_FAMILY = "1,2"; 643 | TEST_TARGET_NAME = "MovieSwiftUI2 (iOS)"; 644 | }; 645 | name = Debug; 646 | }; 647 | 9FE9851F26747D4000FD0138 /* Release */ = { 648 | isa = XCBuildConfiguration; 649 | buildSettings = { 650 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 651 | CODE_SIGN_STYLE = Automatic; 652 | CURRENT_PROJECT_VERSION = 1; 653 | DEVELOPMENT_TEAM = Z6P74P6T99; 654 | GENERATE_INFOPLIST_FILE = YES; 655 | IPHONEOS_DEPLOYMENT_TARGET = 15.0; 656 | LD_RUNPATH_SEARCH_PATHS = ( 657 | "$(inherited)", 658 | "@executable_path/Frameworks", 659 | "@loader_path/Frameworks", 660 | ); 661 | MARKETING_VERSION = 1.0; 662 | PRODUCT_BUNDLE_IDENTIFIER = "com.thomasricouard.Tests-iOS"; 663 | PRODUCT_NAME = "$(TARGET_NAME)"; 664 | SDKROOT = iphoneos; 665 | SWIFT_EMIT_LOC_STRINGS = NO; 666 | SWIFT_VERSION = 5.0; 667 | TARGETED_DEVICE_FAMILY = "1,2"; 668 | TEST_TARGET_NAME = "MovieSwiftUI2 (iOS)"; 669 | VALIDATE_PRODUCT = YES; 670 | }; 671 | name = Release; 672 | }; 673 | 9FE9852126747D4000FD0138 /* Debug */ = { 674 | isa = XCBuildConfiguration; 675 | buildSettings = { 676 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 677 | CODE_SIGN_STYLE = Automatic; 678 | COMBINE_HIDPI_IMAGES = YES; 679 | CURRENT_PROJECT_VERSION = 1; 680 | DEVELOPMENT_TEAM = Z6P74P6T99; 681 | GENERATE_INFOPLIST_FILE = YES; 682 | LD_RUNPATH_SEARCH_PATHS = ( 683 | "$(inherited)", 684 | "@executable_path/../Frameworks", 685 | "@loader_path/../Frameworks", 686 | ); 687 | MACOSX_DEPLOYMENT_TARGET = 11.4; 688 | MARKETING_VERSION = 1.0; 689 | PRODUCT_BUNDLE_IDENTIFIER = "com.thomasricouard.Tests-macOS"; 690 | PRODUCT_NAME = "$(TARGET_NAME)"; 691 | SDKROOT = macosx; 692 | SWIFT_EMIT_LOC_STRINGS = NO; 693 | SWIFT_VERSION = 5.0; 694 | TEST_TARGET_NAME = "MovieSwiftUI2 (macOS)"; 695 | }; 696 | name = Debug; 697 | }; 698 | 9FE9852226747D4000FD0138 /* Release */ = { 699 | isa = XCBuildConfiguration; 700 | buildSettings = { 701 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 702 | CODE_SIGN_STYLE = Automatic; 703 | COMBINE_HIDPI_IMAGES = YES; 704 | CURRENT_PROJECT_VERSION = 1; 705 | DEVELOPMENT_TEAM = Z6P74P6T99; 706 | GENERATE_INFOPLIST_FILE = YES; 707 | LD_RUNPATH_SEARCH_PATHS = ( 708 | "$(inherited)", 709 | "@executable_path/../Frameworks", 710 | "@loader_path/../Frameworks", 711 | ); 712 | MACOSX_DEPLOYMENT_TARGET = 11.4; 713 | MARKETING_VERSION = 1.0; 714 | PRODUCT_BUNDLE_IDENTIFIER = "com.thomasricouard.Tests-macOS"; 715 | PRODUCT_NAME = "$(TARGET_NAME)"; 716 | SDKROOT = macosx; 717 | SWIFT_EMIT_LOC_STRINGS = NO; 718 | SWIFT_VERSION = 5.0; 719 | TEST_TARGET_NAME = "MovieSwiftUI2 (macOS)"; 720 | }; 721 | name = Release; 722 | }; 723 | /* End XCBuildConfiguration section */ 724 | 725 | /* Begin XCConfigurationList section */ 726 | 9FE984EB26747D3F00FD0138 /* Build configuration list for PBXProject "MovieSwiftUI2" */ = { 727 | isa = XCConfigurationList; 728 | buildConfigurations = ( 729 | 9FE9851526747D4000FD0138 /* Debug */, 730 | 9FE9851626747D4000FD0138 /* Release */, 731 | ); 732 | defaultConfigurationIsVisible = 0; 733 | defaultConfigurationName = Release; 734 | }; 735 | 9FE9851726747D4000FD0138 /* Build configuration list for PBXNativeTarget "MovieSwiftUI2 (iOS)" */ = { 736 | isa = XCConfigurationList; 737 | buildConfigurations = ( 738 | 9FE9851826747D4000FD0138 /* Debug */, 739 | 9FE9851926747D4000FD0138 /* Release */, 740 | ); 741 | defaultConfigurationIsVisible = 0; 742 | defaultConfigurationName = Release; 743 | }; 744 | 9FE9851A26747D4000FD0138 /* Build configuration list for PBXNativeTarget "MovieSwiftUI2 (macOS)" */ = { 745 | isa = XCConfigurationList; 746 | buildConfigurations = ( 747 | 9FE9851B26747D4000FD0138 /* Debug */, 748 | 9FE9851C26747D4000FD0138 /* Release */, 749 | ); 750 | defaultConfigurationIsVisible = 0; 751 | defaultConfigurationName = Release; 752 | }; 753 | 9FE9851D26747D4000FD0138 /* Build configuration list for PBXNativeTarget "Tests iOS" */ = { 754 | isa = XCConfigurationList; 755 | buildConfigurations = ( 756 | 9FE9851E26747D4000FD0138 /* Debug */, 757 | 9FE9851F26747D4000FD0138 /* Release */, 758 | ); 759 | defaultConfigurationIsVisible = 0; 760 | defaultConfigurationName = Release; 761 | }; 762 | 9FE9852026747D4000FD0138 /* Build configuration list for PBXNativeTarget "Tests macOS" */ = { 763 | isa = XCConfigurationList; 764 | buildConfigurations = ( 765 | 9FE9852126747D4000FD0138 /* Debug */, 766 | 9FE9852226747D4000FD0138 /* Release */, 767 | ); 768 | defaultConfigurationIsVisible = 0; 769 | defaultConfigurationName = Release; 770 | }; 771 | /* End XCConfigurationList section */ 772 | 773 | /* Begin XCSwiftPackageProductDependency section */ 774 | 9FE9852B267490DB00FD0138 /* Backend */ = { 775 | isa = XCSwiftPackageProductDependency; 776 | productName = Backend; 777 | }; 778 | 9FE9852D267490DB00FD0138 /* UI */ = { 779 | isa = XCSwiftPackageProductDependency; 780 | productName = UI; 781 | }; 782 | /* End XCSwiftPackageProductDependency section */ 783 | }; 784 | rootObject = 9FE984E826747D3F00FD0138 /* Project object */; 785 | } 786 | --------------------------------------------------------------------------------