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
import Foundation | |
typealias KVOContext = UInt8 | |
var MyObservationContext = KVOContext() | |
class Observer: NSObject { | |
func startObservingPerson(person: Person) { | |
let options = NSKeyValueObservingOptions([.New, .Old]) | |
person.addObserver(self, forKeyPath: "firstName", options: options, context: &MyObservationContext) | |
person.addObserver(self, forKeyPath: "lastName", options: options, context: &MyObservationContext) |
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
import Foundation | |
import UIKit | |
struct SFUIDisplayFontType : OptionSetType | |
{ | |
let rawValue: Int | |
init(rawValue: Int) { self.rawValue = rawValue } | |
static internal let None = SFUIDisplayFontType(rawValue: 0) | |
static internal let Bold = SFUIDisplayFontType(rawValue: 1) |
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
import Foundation | |
import UIKit | |
/// The maximum allowed notifications to be scheduled at a time by iOS. | |
///- important: Do not change this value. Changing this value to be over | |
/// 64 will cause some notifications to be discarded by iOS. | |
let MAX_ALLOWED_NOTIFICATIONS = 64 | |
///- author: Ahmed Abdul Badie | |
class ABNScheduler { |
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
import Foundation | |
import UserNotifications | |
import MapKit | |
public class DLNotificationScheduler{ | |
public init () { | |
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
import UIKit | |
import SystemConfiguration | |
import UserNotifications | |
class AppUtility: NSObject { | |
// MARK: - Network Connection Methods | |
class func isNetworkAvailableWithBlock(_ completion: @escaping (_ wasSuccessful: Bool) -> Void) { |
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
**First Create BottomBar.js** | |
import React, { Component, PropTypes } from 'react'; | |
import { | |
View, | |
Text, | |
StyleSheet, | |
Button, | |
Dimensions |
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
import { Router, Stack, Scene ,Reducer} from 'react-native-router-flux'; | |
import LoginScreen from './LoginScreen' | |
import HomeView from './HomeView' | |
import {AsyncStorage} from "react-native"; | |
const USER_KEY = "user-auth"; | |
const reducerCreate = params => { | |
const defaultReducer = new Reducer(params); | |
return (state, action) => { |
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
import React from 'react'; | |
import styles from './styles'; | |
import Wallpaper from "../Wallpaper/index"; | |
import BottomBar from "../BottomBar/index"; | |
import {View,Image,Text,TouchableHighlight,Alert } from 'react-native'; | |
import HomeTopBar from "../HomeTopBar/index"; | |
import { Container, Header, Content ,Button,Icon} from 'native-base'; | |
import home1 from '../../assets/images/home1.png'; | |
import home2 from '../../assets/images/home2.png'; | |
import home3 from '../../assets/images/home3.png'; |
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
import UIKit | |
class SwiftyProgressHUD: UIView { | |
private var backView : UIView? | |
private var progressIndicator : UIActivityIndicatorView? | |
private var titleLabel : UILabel? | |
private var footerLabel : UILabel? | |
//Customizable properties |
OlderNewer