Skip to content

Commit

Permalink
Add sorting API
Browse files Browse the repository at this point in the history
  • Loading branch information
prakharbhardwaj committed Mar 28, 2020
1 parent c3d86e5 commit 9af3c63
Show file tree
Hide file tree
Showing 13 changed files with 450 additions and 73 deletions.
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
IDEWorkspaceChecks.plist
*.DS_Store
.DS_Store

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
Pods/
Podfile.lock

#OSX
.DS_Store
munch/.DS_Store
72 changes: 71 additions & 1 deletion COVIDtracker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
6D0E3D59234B7BA983CF022B /* Pods_COVIDtracker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DBDCD325D99AFBBEAC8A3A22 /* Pods_COVIDtracker.framework */; };
F510F18524224195006A628F /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = F510F18424224195006A628F /* [email protected] */; };
F510F1872423FAC2006A628F /* IndiaDetailCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F510F1862423FAC2006A628F /* IndiaDetailCell.xib */; };
F510F1892423FAE1006A628F /* IndiaDetailCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F510F1882423FAE1006A628F /* IndiaDetailCell.swift */; };
Expand All @@ -23,6 +24,9 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1419C5CCDB38ED6EEA44633B /* Pods-COVIDtracker.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-COVIDtracker.debug.xcconfig"; path = "Target Support Files/Pods-COVIDtracker/Pods-COVIDtracker.debug.xcconfig"; sourceTree = "<group>"; };
1BF197E7682C9B2A14B99FF5 /* Pods-COVIDtracker.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-COVIDtracker.release.xcconfig"; path = "Target Support Files/Pods-COVIDtracker/Pods-COVIDtracker.release.xcconfig"; sourceTree = "<group>"; };
DBDCD325D99AFBBEAC8A3A22 /* Pods_COVIDtracker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_COVIDtracker.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F510F18424224195006A628F /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
F510F1862423FAC2006A628F /* IndiaDetailCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = IndiaDetailCell.xib; sourceTree = "<group>"; };
F510F1882423FAE1006A628F /* IndiaDetailCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IndiaDetailCell.swift; sourceTree = "<group>"; };
Expand All @@ -45,12 +49,30 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6D0E3D59234B7BA983CF022B /* Pods_COVIDtracker.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
57416F7377397F357078BE40 /* Frameworks */ = {
isa = PBXGroup;
children = (
DBDCD325D99AFBBEAC8A3A22 /* Pods_COVIDtracker.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
D9260F71E00CD1FD242D305C /* Pods */ = {
isa = PBXGroup;
children = (
1419C5CCDB38ED6EEA44633B /* Pods-COVIDtracker.debug.xcconfig */,
1BF197E7682C9B2A14B99FF5 /* Pods-COVIDtracker.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
F510F17F242238D9006A628F /* Model */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -94,6 +116,8 @@
F510F18424224195006A628F /* [email protected] */,
F5EE04ED237EBD0E00CF73F2 /* COVIDtracker */,
F5EE04EC237EBD0E00CF73F2 /* Products */,
D9260F71E00CD1FD242D305C /* Pods */,
57416F7377397F357078BE40 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -127,9 +151,11 @@
isa = PBXNativeTarget;
buildConfigurationList = F5EE04FF237EBD1000CF73F2 /* Build configuration list for PBXNativeTarget "COVIDtracker" */;
buildPhases = (
A5A4C65700CB3E3D071DE0EF /* [CP] Check Pods Manifest.lock */,
F5EE04E7237EBD0E00CF73F2 /* Sources */,
F5EE04E8237EBD0E00CF73F2 /* Frameworks */,
F5EE04E9237EBD0E00CF73F2 /* Resources */,
80D41DA04A8F9022EE7EF46E /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -190,6 +216,48 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
80D41DA04A8F9022EE7EF46E /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-COVIDtracker/Pods-COVIDtracker-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-COVIDtracker/Pods-COVIDtracker-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-COVIDtracker/Pods-COVIDtracker-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
A5A4C65700CB3E3D071DE0EF /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-COVIDtracker-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
F5EE04E7237EBD0E00CF73F2 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -343,6 +411,7 @@
};
F5EE0500237EBD1000CF73F2 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1419C5CCDB38ED6EEA44633B /* Pods-COVIDtracker.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
Expand All @@ -361,6 +430,7 @@
};
F5EE0501237EBD1000CF73F2 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1BF197E7682C9B2A14B99FF5 /* Pods-COVIDtracker.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
Expand Down
Binary file not shown.
10 changes: 10 additions & 0 deletions COVIDtracker.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 19 additions & 7 deletions COVIDtracker/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,43 @@
//

import UIKit
import MBProgressHUD


@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {


var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}



// MARK:- Activity Indicator
func showProcessingIndicatorOnView(vwBg: UIView, title: String) {
let hud = MBProgressHUD.showAdded(to: vwBg, animated: true)
hud.customView = UIView()
hud.label.text = title
hud.detailsLabel.text = "Loading..."
}

func hideProcessingIndicatorFromView(vwBg: UIView) {
MBProgressHUD.hide(for: vwBg, animated: true)
}
}

6 changes: 6 additions & 0 deletions COVIDtracker/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
12 changes: 12 additions & 0 deletions COVIDtracker/Assets.xcassets/LaunchImage.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "appstore.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
File renamed without changes
29 changes: 23 additions & 6 deletions COVIDtracker/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -11,15 +12,31 @@
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="5Yb-I7-JxF">
<rect key="frame" x="87" y="333" width="240" height="240"/>
<constraints>
<constraint firstAttribute="width" constant="240" id="VS1-cz-Kq0"/>
<constraint firstAttribute="height" constant="240" id="poe-ki-80D"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="5Yb-I7-JxF" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="CJl-IB-Eqk"/>
<constraint firstItem="5Yb-I7-JxF" firstAttribute="centerY" secondItem="6Tk-OE-BBY" secondAttribute="centerY" id="s2I-kq-maI"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
<point key="canvasLocation" x="52.173913043478265" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="1024" height="1024"/>
</resources>
</document>
Loading

0 comments on commit 9af3c63

Please sign in to comment.