diff --git a/Fabnews/Fabnews.xcodeproj/project.pbxproj b/Fabnews/Fabnews.xcodeproj/project.pbxproj index d4a2fd5..2926968 100644 --- a/Fabnews/Fabnews.xcodeproj/project.pbxproj +++ b/Fabnews/Fabnews.xcodeproj/project.pbxproj @@ -23,6 +23,11 @@ 00EF83C828CF6D8A00A773AB /* ListNewsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 00EF83C628CF6D8A00A773AB /* ListNewsViewController.xib */; }; 00EF83CB28CF6E6100A773AB /* DetailNewsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00EF83C928CF6E6100A773AB /* DetailNewsViewController.swift */; }; 00EF83CC28CF6E6100A773AB /* DetailNewsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 00EF83CA28CF6E6100A773AB /* DetailNewsViewController.xib */; }; + 093524B728E2BA1E003664CC /* News.swift in Sources */ = {isa = PBXBuildFile; fileRef = 093524B628E2BA1E003664CC /* News.swift */; }; + 093524B928E2BB7A003664CC /* ModeData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 093524B828E2BB7A003664CC /* ModeData.swift */; }; + 093524BF28E2C314003664CC /* News.json in Resources */ = {isa = PBXBuildFile; fileRef = 093524BE28E2C314003664CC /* News.json */; }; + 093524C128E2C47D003664CC /* ListNews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 093524C028E2C47D003664CC /* ListNews.swift */; }; + 0939E28628E26ED9006254D2 /* ImageCard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0939E28528E26ED9006254D2 /* ImageCard.swift */; }; 3CB964A843D288D1D0DA8D39 /* Pods_FabnewsTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A6D4E1A04B7C290BB89BA2 /* Pods_FabnewsTests.framework */; }; 822289DFFF7BB1C77D00D6E5 /* Pods_Fabnews.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0F314153F9A2FA7778F7882 /* Pods_Fabnews.framework */; }; F56CC3E5882F44FA04618C4E /* Pods_Fabnews_FabnewsUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F7D59DA7362BEB5B66DDC0F /* Pods_Fabnews_FabnewsUITests.framework */; }; @@ -67,6 +72,11 @@ 00EF83C928CF6E6100A773AB /* DetailNewsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailNewsViewController.swift; sourceTree = ""; }; 00EF83CA28CF6E6100A773AB /* DetailNewsViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DetailNewsViewController.xib; sourceTree = ""; }; 017861F2DA2CB349F54AE01F /* Pods-FabnewsTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FabnewsTests.debug.xcconfig"; path = "Target Support Files/Pods-FabnewsTests/Pods-FabnewsTests.debug.xcconfig"; sourceTree = ""; }; + 093524B628E2BA1E003664CC /* News.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = News.swift; sourceTree = ""; }; + 093524B828E2BB7A003664CC /* ModeData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModeData.swift; sourceTree = ""; }; + 093524BE28E2C314003664CC /* News.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = News.json; sourceTree = ""; }; + 093524C028E2C47D003664CC /* ListNews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListNews.swift; sourceTree = ""; }; + 0939E28528E26ED9006254D2 /* ImageCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageCard.swift; sourceTree = ""; }; 1C1128F0B2D8FDBBD532B7F1 /* Pods-Fabnews.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Fabnews.release.xcconfig"; path = "Target Support Files/Pods-Fabnews/Pods-Fabnews.release.xcconfig"; sourceTree = ""; }; 1E7BFE14B06129809E319D7B /* Pods-Fabnews-FabnewsUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Fabnews-FabnewsUITests.release.xcconfig"; path = "Target Support Files/Pods-Fabnews-FabnewsUITests/Pods-Fabnews-FabnewsUITests.release.xcconfig"; sourceTree = ""; }; 2B796786F6E1194F45CF1669 /* Pods-Fabnews-FabnewsUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Fabnews-FabnewsUITests.debug.xcconfig"; path = "Target Support Files/Pods-Fabnews-FabnewsUITests/Pods-Fabnews-FabnewsUITests.debug.xcconfig"; sourceTree = ""; }; @@ -130,6 +140,8 @@ 0009D99828BF928000DD6678 /* Fabnews */ = { isa = PBXGroup; children = ( + 093524BB28E2C05C003664CC /* Resources */, + 093524B528E2B9EE003664CC /* Model */, 00EF83B928CF65E000A773AB /* Screen */, 00EF83B828CF65C000A773AB /* Core */, 00EF83B728CF65A800A773AB /* Assets */, @@ -177,6 +189,7 @@ 00EF83B928CF65E000A773AB /* Screen */ = { isa = PBXGroup; children = ( + 0939E28428E26D7F006254D2 /* Common */, 00EF83C428CF6D7700A773AB /* DetailNews */, 00EF83C328CF6D7200A773AB /* ListNews */, 00EF83BA28CF65E800A773AB /* Login */, @@ -200,6 +213,7 @@ children = ( 00EF83C528CF6D8A00A773AB /* ListNewsViewController.swift */, 00EF83C628CF6D8A00A773AB /* ListNewsViewController.xib */, + 093524C028E2C47D003664CC /* ListNews.swift */, ); path = ListNews; sourceTree = ""; @@ -213,6 +227,31 @@ path = DetailNews; sourceTree = ""; }; + 093524B528E2B9EE003664CC /* Model */ = { + isa = PBXGroup; + children = ( + 093524B628E2BA1E003664CC /* News.swift */, + 093524B828E2BB7A003664CC /* ModeData.swift */, + ); + path = Model; + sourceTree = ""; + }; + 093524BB28E2C05C003664CC /* Resources */ = { + isa = PBXGroup; + children = ( + 093524BE28E2C314003664CC /* News.json */, + ); + path = Resources; + sourceTree = ""; + }; + 0939E28428E26D7F006254D2 /* Common */ = { + isa = PBXGroup; + children = ( + 0939E28528E26ED9006254D2 /* ImageCard.swift */, + ); + path = Common; + sourceTree = ""; + }; 7C0C0996E9C45DEEC2FF1A3D /* Pods */ = { isa = PBXGroup; children = ( @@ -349,6 +388,7 @@ 0009D9A628BF928200DD6678 /* Assets.xcassets in Resources */, 00EF83BE28CF661000A773AB /* LoginViewController.xib in Resources */, 00EF83C828CF6D8A00A773AB /* ListNewsViewController.xib in Resources */, + 093524BF28E2C314003664CC /* News.json in Resources */, 00EF83CC28CF6E6100A773AB /* DetailNewsViewController.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -478,12 +518,16 @@ buildActionMask = 2147483647; files = ( 00EF83CB28CF6E6100A773AB /* DetailNewsViewController.swift in Sources */, + 0939E28628E26ED9006254D2 /* ImageCard.swift in Sources */, 00EF83BD28CF661000A773AB /* LoginViewController.swift in Sources */, 00EF83C228CF67BF00A773AB /* LoginModel.swift in Sources */, + 093524B928E2BB7A003664CC /* ModeData.swift in Sources */, 00EF83C728CF6D8A00A773AB /* ListNewsViewController.swift in Sources */, + 093524C128E2C47D003664CC /* ListNews.swift in Sources */, 0009D99A28BF928000DD6678 /* AppDelegate.swift in Sources */, 0009D9A428BF928000DD6678 /* Fabnews.xcdatamodeld in Sources */, 00EF83C028CF67B700A773AB /* LoginViewModel.swift in Sources */, + 093524B728E2BA1E003664CC /* News.swift in Sources */, 0009D99C28BF928000DD6678 /* SceneDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -652,9 +696,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = 8ZF225K998; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Fabnews/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -669,6 +714,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = funios.Fabnews; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; @@ -681,9 +727,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = 8ZF225K998; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Fabnews/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -698,6 +745,7 @@ MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = funios.Fabnews; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; @@ -710,14 +758,15 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = A3ZG558H3C; + DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.4; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = funios.FabnewsTests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -731,14 +780,15 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = A3ZG558H3C; + DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 15.4; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = funios.FabnewsTests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -751,13 +801,14 @@ baseConfigurationReference = 2B796786F6E1194F45CF1669 /* Pods-Fabnews-FabnewsUITests.debug.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = A3ZG558H3C; + DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = funios.FabnewsUITests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -770,13 +821,14 @@ baseConfigurationReference = 1E7BFE14B06129809E319D7B /* Pods-Fabnews-FabnewsUITests.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = A3ZG558H3C; + DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = funios.FabnewsUITests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_EMIT_LOC_STRINGS = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/Fabnews/Fabnews.xcodeproj/project.xcworkspace/xcuserdata/aic.xcuserdatad/UserInterfaceState.xcuserstate b/Fabnews/Fabnews.xcodeproj/project.xcworkspace/xcuserdata/aic.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..61b0428 Binary files /dev/null and b/Fabnews/Fabnews.xcodeproj/project.xcworkspace/xcuserdata/aic.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Fabnews/Fabnews.xcodeproj/xcshareddata/xcschemes/Fabnews.xcscheme b/Fabnews/Fabnews.xcodeproj/xcshareddata/xcschemes/Fabnews.xcscheme new file mode 100644 index 0000000..9a067b5 --- /dev/null +++ b/Fabnews/Fabnews.xcodeproj/xcshareddata/xcschemes/Fabnews.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Fabnews/Fabnews.xcodeproj/xcuserdata/aic.xcuserdatad/xcschemes/xcschememanagement.plist b/Fabnews/Fabnews.xcodeproj/xcuserdata/aic.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..9465d4c --- /dev/null +++ b/Fabnews/Fabnews.xcodeproj/xcuserdata/aic.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + Fabnews.xcscheme_^#shared#^_ + + orderHint + 0 + + + SuppressBuildableAutocreation + + 0009D99528BF928000DD6678 + + primary + + + 0009D9AE28BF928200DD6678 + + primary + + + 0009D9B828BF928200DD6678 + + primary + + + + + diff --git a/Fabnews/Fabnews.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/Fabnews/Fabnews.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/Fabnews/Fabnews.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/Fabnews/Fabnews.xcworkspace/xcuserdata/aic.xcuserdatad/UserInterfaceState.xcuserstate b/Fabnews/Fabnews.xcworkspace/xcuserdata/aic.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..1e6fa65 Binary files /dev/null and b/Fabnews/Fabnews.xcworkspace/xcuserdata/aic.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Fabnews/Fabnews.xcworkspace/xcuserdata/aic.xcuserdatad/WorkspaceSettings.xcsettings b/Fabnews/Fabnews.xcworkspace/xcuserdata/aic.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..bbfef02 --- /dev/null +++ b/Fabnews/Fabnews.xcworkspace/xcuserdata/aic.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,14 @@ + + + + + BuildLocationStyle + UseAppPreferences + CustomBuildLocationType + RelativeToDerivedData + DerivedDataLocationStyle + Default + ShowSharedSchemesAutomaticallyEnabled + + + diff --git a/Fabnews/Fabnews/Assets/Assets.xcassets/boeing737500.imageset/Contents.json b/Fabnews/Fabnews/Assets/Assets.xcassets/boeing737500.imageset/Contents.json new file mode 100644 index 0000000..859098d --- /dev/null +++ b/Fabnews/Fabnews/Assets/Assets.xcassets/boeing737500.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "boeing-737-500.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Fabnews/Fabnews/Assets/Assets.xcassets/boeing737500.imageset/boeing-737-500.jpeg b/Fabnews/Fabnews/Assets/Assets.xcassets/boeing737500.imageset/boeing-737-500.jpeg new file mode 100644 index 0000000..c02ecb3 Binary files /dev/null and b/Fabnews/Fabnews/Assets/Assets.xcassets/boeing737500.imageset/boeing-737-500.jpeg differ diff --git a/Fabnews/Fabnews/Assets/Base.lproj/LaunchScreen.storyboard b/Fabnews/Fabnews/Assets/Base.lproj/LaunchScreen.storyboard index 865e932..3aa4810 100644 --- a/Fabnews/Fabnews/Assets/Base.lproj/LaunchScreen.storyboard +++ b/Fabnews/Fabnews/Assets/Base.lproj/LaunchScreen.storyboard @@ -1,8 +1,11 @@ - - + + + - + + + @@ -11,10 +14,10 @@ - + - + @@ -22,4 +25,9 @@ + + + + + diff --git a/Fabnews/Fabnews/Core/SceneDelegate.swift b/Fabnews/Fabnews/Core/SceneDelegate.swift index 72b8bb0..c9abb8c 100644 --- a/Fabnews/Fabnews/Core/SceneDelegate.swift +++ b/Fabnews/Fabnews/Core/SceneDelegate.swift @@ -17,7 +17,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). guard let windowsScene = (scene as? UIWindowScene) else { return } - let vc = DetailNewsViewController(nibName: String(describing: DetailNewsViewController.self), bundle: nil) +// let vc = DetailNewsViewController(nibName: String(describing: DetailNewsViewController.self), bundle: nil) + let vc = ListNewsViewController(nibName: String(describing: ListNewsViewController.self), bundle: nil) window = UIWindow(windowScene: windowsScene) window?.makeKeyAndVisible() window?.rootViewController = vc diff --git a/Fabnews/Fabnews/Model/ModeData.swift b/Fabnews/Fabnews/Model/ModeData.swift new file mode 100644 index 0000000..c1491ea --- /dev/null +++ b/Fabnews/Fabnews/Model/ModeData.swift @@ -0,0 +1,32 @@ +// +// ModeData.swift +// Fabnews +// +// Created by cybercatzone on 27/09/22. +// + +import Foundation + +var news: [News] = load("News.json") + +func load(_ filename: String) -> T{ + let data: Data + + guard let file = Bundle.main.url(forResource: filename, withExtension: nil) + else{ + fatalError("Couldn't find \(filename) in main bundle.") + } + + do{ + data = try Data(contentsOf: file) + }catch{ + fatalError("Couldn't load \(filename) from main bundle:\n\(error)") + } + + do{ + let decoder = JSONDecoder() + return try decoder.decode(T.self, from: data) + }catch{ + fatalError("Couldn't parse \(filename) as \(T.self):\n\(error)") + } +} diff --git a/Fabnews/Fabnews/Model/News.swift b/Fabnews/Fabnews/Model/News.swift new file mode 100644 index 0000000..42ea62c --- /dev/null +++ b/Fabnews/Fabnews/Model/News.swift @@ -0,0 +1,19 @@ +// +// News.swift +// Fabnews +// +// Created by cybercatzone on 27/09/22. +// + +import Foundation +import SwiftUI + +struct News: Hashable, Codable{ + var id: Int + var title: String + + private var imageName: String + var image: Image{ + Image(imageName) + } +} diff --git a/Fabnews/Fabnews/Resources/News.json b/Fabnews/Fabnews/Resources/News.json new file mode 100644 index 0000000..2af6621 --- /dev/null +++ b/Fabnews/Fabnews/Resources/News.json @@ -0,0 +1,12 @@ +[ + { + "id": 1, + "title": "Title One", + "imageName": "boeing737500" + }, + { + "id": 2, + "title": "Title Two", + "imageName": "boeing737500" + } +] diff --git a/Fabnews/Fabnews/Screen/Common/ImageCard.swift b/Fabnews/Fabnews/Screen/Common/ImageCard.swift new file mode 100644 index 0000000..22da1d0 --- /dev/null +++ b/Fabnews/Fabnews/Screen/Common/ImageCard.swift @@ -0,0 +1,48 @@ +// +// ImageCard.swift +// Fabnews +// +// Created by cybercatzone on 27/09/22. +// + +import SwiftUI + +struct ImageCard: View{ + var item: News + + var body: some View{ + HStack(alignment: .center){ + item.image + .resizable() + .frame(width: 100,height: 100) + cardText.padding(.horizontal,4.0) + } + + } + + var cardText: some View{ + VStack(alignment: .leading){ + Text(item.title) + .font(.headline) + + HStack(spacing: 4.0){ + Image(systemName: "calendar") + Text("Jan 10, 2022") + .padding(.trailing, 16.0) + Image(systemName: "clock.arrow.circlepath") + Text("10 min read") + }.padding(.top, 1.0).foregroundColor(.gray) + } + } +} + +struct ImageCard_Previews: PreviewProvider{ + + static var previews: some View{ + Group{ + ImageCard(item: news[0]) + ImageCard(item: news[1]) + } + .previewLayout(.fixed(width: 300, height: 70)) + } +} diff --git a/Fabnews/Fabnews/Screen/DetailNews/DetailNewsViewController.xib b/Fabnews/Fabnews/Screen/DetailNews/DetailNewsViewController.xib index 87cfb7a..6f4c5b0 100644 --- a/Fabnews/Fabnews/Screen/DetailNews/DetailNewsViewController.xib +++ b/Fabnews/Fabnews/Screen/DetailNews/DetailNewsViewController.xib @@ -84,7 +84,7 @@ - Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. + Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. diff --git a/Fabnews/Fabnews/Screen/ListNews/ListNews.swift b/Fabnews/Fabnews/Screen/ListNews/ListNews.swift new file mode 100644 index 0000000..75aee72 --- /dev/null +++ b/Fabnews/Fabnews/Screen/ListNews/ListNews.swift @@ -0,0 +1,57 @@ +// +// ListNews.swift +// Fabnews +// +// Created by cybercatzone on 27/09/22. +// + +import SwiftUI + +struct ListNews: View { + var body: some View { + VStack{ + header + tabMenu + listData + } + + } + + var header: some View{ + VStack(alignment: .leading){ + Text("Breaking News") + .font(.largeTitle) + .foregroundColor(Color.black) + .multilineTextAlignment(.leading) + .padding([.top, .leading, .trailing]) + Image("boeing737500") + .resizable(resizingMode: .stretch) + .padding(.horizontal) + } + } + + var tabMenu: some View{ + HStack(){ + Text("All") + .foregroundColor(Color.blue) + Text("Internation") + Text("Media") + Text("Magazine") + } + .padding(.top) + } + + var listData: some View{ + List{ + ImageCard(item: news[0]) + ImageCard(item: news[1]) + } + + } +} + +struct ListNews_Previews: PreviewProvider { + static var previews: some View { + ListNews() + } +} diff --git a/Fabnews/Fabnews/Screen/ListNews/ListNewsViewController.xib b/Fabnews/Fabnews/Screen/ListNews/ListNewsViewController.xib index 95c9c90..01a43f5 100644 --- a/Fabnews/Fabnews/Screen/ListNews/ListNewsViewController.xib +++ b/Fabnews/Fabnews/Screen/ListNews/ListNewsViewController.xib @@ -1,9 +1,10 @@ - + - + + @@ -19,24 +20,73 @@ - - - - - - - + + + + + + diff --git a/Fabnews/Pods/Pods.xcodeproj/project.pbxproj b/Fabnews/Pods/Pods.xcodeproj/project.pbxproj index 7e8533c..c0bd31b 100644 --- a/Fabnews/Pods/Pods.xcodeproj/project.pbxproj +++ b/Fabnews/Pods/Pods.xcodeproj/project.pbxproj @@ -566,7 +566,7 @@ 5C7775C58486E7EA7B530EAAE93EA053 /* UIControl+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIControl+Rx.swift"; path = "RxCocoa/iOS/UIControl+Rx.swift"; sourceTree = ""; }; 5C806E1078B71841D0ACF201361BC366 /* UISearchController+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UISearchController+Rx.swift"; path = "RxCocoa/iOS/UISearchController+Rx.swift"; sourceTree = ""; }; 5D569A7403CFE752C23CE19FF5FFDA57 /* Map.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Map.swift; path = RxSwift/Observables/Map.swift; sourceTree = ""; }; - 5D797E9A5C5782CE845840781FA1CC81 /* Alamofire */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Alamofire; path = Alamofire.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5D797E9A5C5782CE845840781FA1CC81 /* Alamofire.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Alamofire.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 5EA5588D2C5390A5B58662902A7F2EF8 /* RxCocoa-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "RxCocoa-Info.plist"; sourceTree = ""; }; 5ED2302229E20A6EAD8BA0AE10D58E6D /* DispatchQueue+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "DispatchQueue+Extensions.swift"; path = "Platform/DispatchQueue+Extensions.swift"; sourceTree = ""; }; 5F1F06B296CA5E89D60BAB04340FCE6A /* Alamofire-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Alamofire-umbrella.h"; sourceTree = ""; }; @@ -614,7 +614,7 @@ 7DBD64C11B97CAB76271341457931309 /* Deferred.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Deferred.swift; path = RxSwift/Observables/Deferred.swift; sourceTree = ""; }; 7EC13CD71B4910CA32C14EE83EAFDE77 /* Disposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Disposable.swift; path = RxSwift/Disposable.swift; sourceTree = ""; }; 7FA77958217B85810FE90A2B3A5E44C7 /* InvocableScheduledItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = InvocableScheduledItem.swift; path = RxSwift/Schedulers/Internal/InvocableScheduledItem.swift; sourceTree = ""; }; - 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxSwift; path = RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 80F193879DCF8E52BA15CEF247059862 /* Queue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Queue.swift; path = Platform/DataStructures/Queue.swift; sourceTree = ""; }; 81219CB5C8A26378D21424AADE167024 /* ItemEvents.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ItemEvents.swift; path = RxCocoa/iOS/Events/ItemEvents.swift; sourceTree = ""; }; 8188DD1D8B59D2F8AA4BC4319865DDF8 /* RxSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxSwift.debug.xcconfig; sourceTree = ""; }; @@ -653,7 +653,7 @@ 9CA24CC400863DFEB5828AFE0D83963D /* RxMutableBox.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxMutableBox.swift; path = RxSwift/RxMutableBox.swift; sourceTree = ""; }; 9CBDB0A85B973D4592DD0AE5F555E25F /* Infallible+Create.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Infallible+Create.swift"; path = "RxSwift/Traits/Infallible/Infallible+Create.swift"; sourceTree = ""; }; 9D347AC5374F2B7DF4F4C249785DD731 /* RxCollectionViewDataSourceProxy.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RxCollectionViewDataSourceProxy.swift; path = RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 9D9702249BCC07A0D6772E0283EF686C /* BehaviorSubject.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BehaviorSubject.swift; path = RxSwift/Subjects/BehaviorSubject.swift; sourceTree = ""; }; 9DFC021D8F13A426E7296F00125E4F88 /* RxCocoa.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = RxCocoa.debug.xcconfig; sourceTree = ""; }; 9E4DB1DB394BAEF07A451C0324F43104 /* Pods-FabnewsTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FabnewsTests-acknowledgements.plist"; sourceTree = ""; }; @@ -698,7 +698,7 @@ BA902D29C2835BED943682EB418E5C63 /* PriorityQueue.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PriorityQueue.swift; path = Platform/DataStructures/PriorityQueue.swift; sourceTree = ""; }; BB47804066B3E94399235F80CC842B68 /* ConcurrentDispatchQueueScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConcurrentDispatchQueueScheduler.swift; path = RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift; sourceTree = ""; }; BC2DF17DDEA61D6C5196C38804277861 /* MultipartUpload.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MultipartUpload.swift; path = Source/MultipartUpload.swift; sourceTree = ""; }; - BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxCocoa; path = RxCocoa.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCocoa.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BD49CE96ECF0F712AABDE1871B258613 /* Infallible+Operators.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Infallible+Operators.swift"; path = "RxSwift/Traits/Infallible/Infallible+Operators.swift"; sourceTree = ""; }; BDA4732E16262D85485E09ACA916EE2C /* SingleAssignmentDisposable.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SingleAssignmentDisposable.swift; path = RxSwift/Disposables/SingleAssignmentDisposable.swift; sourceTree = ""; }; BDDC54C750AF2A3937B1362D96F2A1ED /* Driver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Driver.swift; path = RxCocoa/Traits/Driver/Driver.swift; sourceTree = ""; }; @@ -802,7 +802,7 @@ FE43ACE27E69D1BCCD5C897F6A647EEE /* RecursiveLock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RecursiveLock.swift; path = Platform/RecursiveLock.swift; sourceTree = ""; }; FE979A7307701776953E876C33C908D3 /* URLSession+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "URLSession+Rx.swift"; path = "RxCocoa/Foundation/URLSession+Rx.swift"; sourceTree = ""; }; FEE62ADAC2A0CC87DAFF282A10A8E4B0 /* NSTextView+Rx.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "NSTextView+Rx.swift"; path = "RxCocoa/macOS/NSTextView+Rx.swift"; sourceTree = ""; }; - FF8B264DFE802855D5D67E7CDDABFC3C /* RxRelay */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = RxRelay; path = RxRelay.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + FF8B264DFE802855D5D67E7CDDABFC3C /* RxRelay.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxRelay.framework; sourceTree = BUILT_PRODUCTS_DIR; }; FFA6F5B23F9C477849E1A5CE373CA61F /* ConcurrentMainScheduler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ConcurrentMainScheduler.swift; path = RxSwift/Schedulers/ConcurrentMainScheduler.swift; sourceTree = ""; }; FFF5542D48C225DCB29BDC0D0493B902 /* Zip+arity.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "Zip+arity.swift"; path = "RxSwift/Observables/Zip+arity.swift"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -998,7 +998,6 @@ 97CA0BD5A4A7D0ED3357413E4B39E3CA /* WKWebView+Rx.swift */, 911FEFEC0D1E87AFBA9E7676E75E9DE6 /* Support Files */, ); - name = RxCocoa; path = RxCocoa; sourceTree = ""; }; @@ -1089,7 +1088,6 @@ E3A6CE4B89BB5437E3115110BF7EF884 /* Validation.swift */, 01B9FED2060F68F9F70C2D4681DDC05B /* Support Files */, ); - name = Alamofire; path = Alamofire; sourceTree = ""; }; @@ -1127,7 +1125,6 @@ DA68EAE2F3F634CF13FE5D313C7A8E4F /* Utils.swift */, B084F3DF878D7F3BACC6DE9B080475F0 /* Support Files */, ); - name = RxRelay; path = RxRelay; sourceTree = ""; }; @@ -1180,13 +1177,13 @@ BE271194D6ED6F84080F24DEF768F3C7 /* Products */ = { isa = PBXGroup; children = ( - 5D797E9A5C5782CE845840781FA1CC81 /* Alamofire */, + 5D797E9A5C5782CE845840781FA1CC81 /* Alamofire.framework */, 2F89FA310DCD790D79A9AA0544D9D0CF /* Pods-Fabnews */, C3BED81F35A0CD035F71A2EBC370CF96 /* Pods-Fabnews-FabnewsUITests */, 030F99BC89560E03C4F2D3A82719C027 /* Pods-FabnewsTests */, - BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa */, - FF8B264DFE802855D5D67E7CDDABFC3C /* RxRelay */, - 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift */, + BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa.framework */, + FF8B264DFE802855D5D67E7CDDABFC3C /* RxRelay.framework */, + 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift.framework */, ); name = Products; sourceTree = ""; @@ -1384,7 +1381,6 @@ 6A70D85236B08D4A49C4B3B27ED7DD4E /* Zip+Collection.swift */, 4907C439FEB72150BFBDE5B4A9A488E3 /* Support Files */, ); - name = RxSwift; path = RxSwift; sourceTree = ""; }; @@ -1472,7 +1468,7 @@ ); name = RxRelay; productName = RxRelay; - productReference = FF8B264DFE802855D5D67E7CDDABFC3C /* RxRelay */; + productReference = FF8B264DFE802855D5D67E7CDDABFC3C /* RxRelay.framework */; productType = "com.apple.product-type.framework"; }; 5BD52B6418BEB1DFE256690012AE0935 /* Pods-Fabnews-FabnewsUITests */ = { @@ -1533,7 +1529,7 @@ ); name = RxCocoa; productName = RxCocoa; - productReference = BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa */; + productReference = BC432FD48A5932251F1CAFBC4BF74894 /* RxCocoa.framework */; productType = "com.apple.product-type.framework"; }; DB91B4EB508BDA207B1DB8002FBCB96C /* Pods-Fabnews */ = { @@ -1573,7 +1569,7 @@ ); name = RxSwift; productName = RxSwift; - productReference = 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift */; + productReference = 809C5FAB588354C9BA37DC3EAB8CB45C /* RxSwift.framework */; productType = "com.apple.product-type.framework"; }; EAAA1AD3A8A1B59AB91319EE40752C6D /* Alamofire */ = { @@ -1591,7 +1587,7 @@ ); name = Alamofire; productName = Alamofire; - productReference = 5D797E9A5C5782CE845840781FA1CC81 /* Alamofire */; + productReference = 5D797E9A5C5782CE845840781FA1CC81 /* Alamofire.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ @@ -1601,7 +1597,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 1240; - LastUpgradeCheck = 1240; + LastUpgradeCheck = 1400; }; buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; compatibilityVersion = "Xcode 13.0"; @@ -2134,7 +2130,7 @@ GCC_PREFIX_HEADER = "Target Support Files/RxRelay/RxRelay-prefix.pch"; INFOPLIST_FILE = "Target Support Files/RxRelay/RxRelay-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2265,6 +2261,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -2311,7 +2308,7 @@ GCC_PREFIX_HEADER = "Target Support Files/RxCocoa/RxCocoa-prefix.pch"; INFOPLIST_FILE = "Target Support Files/RxCocoa/RxCocoa-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2346,7 +2343,7 @@ GCC_PREFIX_HEADER = "Target Support Files/RxRelay/RxRelay-prefix.pch"; INFOPLIST_FILE = "Target Support Files/RxRelay/RxRelay-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2438,6 +2435,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -2481,7 +2479,7 @@ GCC_PREFIX_HEADER = "Target Support Files/Alamofire/Alamofire-prefix.pch"; INFOPLIST_FILE = "Target Support Files/Alamofire/Alamofire-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2517,7 +2515,7 @@ GCC_PREFIX_HEADER = "Target Support Files/Alamofire/Alamofire-prefix.pch"; INFOPLIST_FILE = "Target Support Files/Alamofire/Alamofire-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2551,7 +2549,7 @@ GCC_PREFIX_HEADER = "Target Support Files/RxCocoa/RxCocoa-prefix.pch"; INFOPLIST_FILE = "Target Support Files/RxCocoa/RxCocoa-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2585,7 +2583,7 @@ GCC_PREFIX_HEADER = "Target Support Files/RxSwift/RxSwift-prefix.pch"; INFOPLIST_FILE = "Target Support Files/RxSwift/RxSwift-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2620,7 +2618,7 @@ GCC_PREFIX_HEADER = "Target Support Files/RxSwift/RxSwift-prefix.pch"; INFOPLIST_FILE = "Target Support Files/RxSwift/RxSwift-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/Fabnews/Pods/Pods.xcodeproj/xcuserdata/aic.xcuserdatad/xcschemes/xcschememanagement.plist b/Fabnews/Pods/Pods.xcodeproj/xcuserdata/aic.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..99d43c3 --- /dev/null +++ b/Fabnews/Pods/Pods.xcodeproj/xcuserdata/aic.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,44 @@ + + + + + SchemeUserState + + Alamofire.xcscheme_^#shared#^_ + + orderHint + 5 + + Pods-Fabnews-FabnewsUITests.xcscheme_^#shared#^_ + + orderHint + 4 + + Pods-Fabnews.xcscheme_^#shared#^_ + + orderHint + 3 + + Pods-FabnewsTests.xcscheme_^#shared#^_ + + orderHint + 1 + + RxCocoa.xcscheme_^#shared#^_ + + orderHint + 6 + + RxRelay.xcscheme_^#shared#^_ + + orderHint + 7 + + RxSwift.xcscheme_^#shared#^_ + + orderHint + 2 + + + +