https://github.com/jzucker2/swiftykit
https://github.com/jzucker2/swiftykit
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jzucker2/swiftykit
- Owner: jzucker2
- License: mit
- Created: 2017-07-27T06:19:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T17:14:03.000Z (over 7 years ago)
- Last Synced: 2025-02-24T13:49:29.425Z (4 months ago)
- Language: Swift
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftyKit
[](https://travis-ci.org/jzucker2/SwiftyKit)
[](http://cocoapods.org/pods/SwiftyKit)
[](http://cocoapods.org/pods/SwiftyKit)
[](http://cocoapods.org/pods/SwiftyKit)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
SwiftyKit is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "SwiftyKit"
```## Notes
```
/// A type-erased key path, from any root type to any resulting value type.
public class AnyKeyPath : Hashable {/// The root type for this key path.
public static var rootType: Any.Type { get }/// The value type for this key path.
public static var valueType: Any.Type { get }/// The hash value.
///
/// Hash values are not guaranteed to be equal across different executions of
/// your program. Do not save hash values to use during a future execution.
final public var hashValue: Int { get }/// Returns a Boolean value indicating whether two values are equal.
///
/// Equality is the inverse of inequality. For any values `a` and `b`,
/// `a == b` implies that `a != b` is `false`.
///
/// - Parameters:
/// - lhs: A value to compare.
/// - rhs: Another value to compare.
public static func ==(a: AnyKeyPath, b: AnyKeyPath) -> Bool
}/// A partially type-erased key path, from a concrete root type to any
/// resulting value type.
public class PartialKeyPath : AnyKeyPath {
}/// A key path from a specific root type to a specific resulting value type.
public class KeyPath : PartialKeyPath {
}/// A key path that supports reading from and writing to the resulting value.
public class WritableKeyPath : KeyPath {
}/// A key path that supports reading from and writing to the resulting value
/// with reference semantics.
public class ReferenceWritableKeyPath : WritableKeyPath {
}
```## To Do
- [ ] Add core data tests
- [ ] Add a data controller class## Author
jzucker2, [email protected]
## License
SwiftyKit is available under the MIT license. See the LICENSE file for more info.