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
//: Playground - noun: a place where people can play | |
import UIKit | |
var timeDiff: Double = 0 | |
public extension String { | |
public var isNumericRegex: Bool { | |
return range(of: "(^-?[\\d]+$)|(-?[\\d]+[.,]{1}[\\d]+$)", | |
options: String.CompareOptions.regularExpression, range: nil, locale: nil) != nil |
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
/*: | |
> # IMPORTANT: To use `ReactiveSwift.playground`, please: | |
1. Retrieve the project dependencies using one of the following terminal commands from the ReactiveSwift project root directory: | |
- `git submodule update --init` | |
**OR**, if you have [Carthage](https://github.com/Carthage/Carthage) installed | |
- `carthage checkout --no-use-binaries` | |
1. Open `ReactiveSwift.xcworkspace` | |
1. Build `Result-Mac` scheme | |
1. Build `ReactiveSwift-macOS` scheme |