-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
save user daily activity in local database
- Loading branch information
Showing
425 changed files
with
116,610 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+280 Bytes
(100%)
...j/project.xcworkspace/xcuserdata/hitenderkumar.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Actifit/Actifit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+23.5 KB
...t/Actifit.xcworkspace/xcuserdata/hitenderkumar.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// | ||
// Constants.swift | ||
// Actifit | ||
// | ||
// Created by Hitender kumar on 06/07/18. | ||
// Copyright © 2018 Hitender kumar. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
//MARK: Singletons | ||
|
||
let MainBundle = Bundle.main | ||
let Application = UIApplication.shared | ||
let AppDelegate = Application.delegate as! AFAppDelegate | ||
let DeviceType = AFTDeviceType() | ||
let ISSimulator = (UIDevice.current.isSimulator) | ||
|
||
//MARK: Device | ||
|
||
struct MainScreenSize | ||
{ | ||
// let SCREEN_WIDTH = UIScreen.main.bounds.size.width | ||
// let SCREEN_HEIGHT = UIScreen.main.bounds.size.height | ||
static let SCREEN_MAX_LENGTH = max(ScreenWidth, ScreenHeight) | ||
static let SCREEN_MIN_LENGTH = min(ScreenWidth, ScreenHeight) | ||
} | ||
|
||
struct AFTDeviceType | ||
{ | ||
let IS_IPHONE_5_OR_LESS = UIDevice.current.userInterfaceIdiom == .phone && MainScreenSize.SCREEN_MAX_LENGTH <= 568.0 | ||
let IS_IPHONE_5 = UIDevice.current.userInterfaceIdiom == .phone && MainScreenSize.SCREEN_MAX_LENGTH == 568.0 | ||
let IS_IPHONE_6 = UIDevice.current.userInterfaceIdiom == .phone && MainScreenSize.SCREEN_MAX_LENGTH == 667.0 | ||
let IS_IPHONE_6P = UIDevice.current.userInterfaceIdiom == .phone && MainScreenSize.SCREEN_MAX_LENGTH == 736.0 | ||
let IS_IPHONE_X = UIDevice.current.userInterfaceIdiom == .phone && MainScreenSize.SCREEN_MAX_LENGTH == 812.0 | ||
let IS_PAD_97INCH = UIDevice.current.userInterfaceIdiom == .pad && MainScreenSize.SCREEN_MAX_LENGTH == 1024 | ||
let IS_PAD_105INCH = UIDevice.current.userInterfaceIdiom == .pad && MainScreenSize.SCREEN_MAX_LENGTH == 1112 | ||
let IS_PAD_129INCH = UIDevice.current.userInterfaceIdiom == .pad && MainScreenSize.SCREEN_MAX_LENGTH == 1366 | ||
} | ||
|
||
let IsPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.pad) | ||
let isiPadPro = IsPad && (UIScreen.main.bounds.size.height == 1024) | ||
|
||
//MARK: Device Width & Heights | ||
|
||
let CurrentDevice = UIDevice.current | ||
let iOSVersion = CurrentDevice.systemVersion | ||
|
||
let WindowFrame = UIScreen.main.bounds | ||
var ScreenWidth = WindowFrame.size.width | ||
var ScreenHeight = WindowFrame.size.height | ||
|
||
let DeviceWidth = min(ScreenWidth, ScreenHeight) | ||
let DeviceHeight = max(ScreenWidth,ScreenHeight) | ||
|
||
let NavBarHeight = (20+44) | ||
let SideBarWidth = IsPad ? 320 : 240 | ||
let MasterWidthForSplitVC = 320 | ||
|
||
func Format(fmt : String) -> String { | ||
|
||
return String.init(fmt) | ||
|
||
//use | ||
// let floatVal: Float = 3.00 | ||
|
||
// let str : String = Format(fmt: "\("this is : ")\(floatVal)") | ||
} | ||
|
||
extension UIDevice { | ||
var isSimulator: Bool { | ||
|
||
#if arch(i386) || arch(x86_64) | ||
return true | ||
#else | ||
return false | ||
#endif | ||
|
||
//return UIDevice.current.userInterfaceIdiom.rawValue == 0 | ||
|
||
//not working | ||
|
||
// #if TARGET_IOS_SIMULATOR | ||
// return true | ||
// #else | ||
// return false | ||
// #endif | ||
} | ||
} |
Oops, something went wrong.