This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app | |
| if [ "$CONFIGURATION" == "Release" ]; then | |
| rm -Rf $BUILD_APP_DIR/Settings.bundle | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| enum Environment: String { | |
| case production | |
| case testing | |
| case development | |
| } | |
| class PKSettingsBundleHelper { | |
| static let shared = PKSettingsBundleHelper() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct NewsRowV : View { | |
| let artical: Artical | |
| var body: some View { | |
| HStack { | |
| Image("ic_news_placeholder") | |
| .frame(width: 55.0, height: 41.0, alignment: Alignment.center) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct NewsDetailV : View { | |
| let artical: Artical | |
| private let imageWidth: CGFloat = (UIDevice.screenWidth-30.0) | |
| var body: some View { | |
| VStack(alignment: .center) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import Combine | |
| class MainHomeVM: BindableObject { | |
| var articals: [Artical] = [] { | |
| didSet { | |
| didChange.send(self) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct MainHomeV : View { | |
| @State private var searchQuery: String = "cricket" | |
| @EnvironmentObject var viewModel: MainHomeVM | |
| var todayStr: String { | |
| Date().toString(dateFormat: "EEE, dd MMM yyyy") | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let defaultText: String = "N/A" | |
| struct Article: Hashable { | |
| var sourceId: String = defaultText | |
| var sourceName: String = defaultText | |
| var author: String = defaultText | |
| var title: String = defaultText | |
| var description: String = defaultText | |
| var url: String = defaultText | |
| var urlToImage: String = defaultText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // PKIAPHandler.swift | |
| // | |
| // Created by Pramod Kumar on 13/07/2017. | |
| // Copyright © 2017 Pramod Kumar. All rights reserved. | |
| // | |
| import UIKit | |
| import StoreKit | |
| enum PKIAPHandlerAlertType { |
NewerOlder