I hereby claim:
- I am zoejessica on github.
- I am zoejessica (https://keybase.io/zoejessica) on keybase.
- I have a public key whose fingerprint is FB40 ACD5 4224 8770 4470 6C39 035A F65B 02C1 4E6B
To claim this, I am signing this object:
// | |
// DarwinNotificationCenter.swift | |
// | |
// Copyright © 2017 WeTransfer. All rights reserved. | |
// | |
import Foundation | |
/// A Darwin notification payload. It does not contain any userInfo, a Darwin notification is purely event handling. | |
public struct DarwinNotification { |
/// Withable is a simple protocol to make constructing | |
/// and modifying objects with multiple properties | |
/// more pleasant (functional, chainable, point-free) | |
public protocol Withable { | |
init() | |
} | |
public extension Withable { | |
/// Construct a new instance, setting an arbitrary subset of properties | |
init(with config: (inout Self) -> Void) { |
// | |
// PagerView.swift | |
// | |
// Created by Majid Jabrayilov on 12/5/19. | |
// Copyright © 2019 Majid Jabrayilov. All rights reserved. | |
// | |
import SwiftUI | |
struct PagerView<Content: View>: View { | |
let pageCount: Int |
class Context: ObservableObject { | |
init(selectedIngredients: Set<Ingredient>, ingredients: [Ingredient]) { | |
self.selectedIngredients = selectedIngredients | |
self.ingredients = ingredients | |
} | |
@Published var selectedIngredients: Set<Ingredient> | |
let ingredients: [Ingredient] | |
} |
import Foundation | |
import SnapshotTesting | |
import XCTest | |
public typealias NamesToValues = [String : Double] | |
public func approximateValues(tolerance percentage: Double) -> SimplySnapshotting<NamesToValues> { | |
let diffingStrategy = Diffing.approximateValues(tolerance: percentage) | |
return SimplySnapshotting.init(pathExtension: "json", diffing: diffingStrategy) | |
} |
import Foundation | |
import CoreData | |
import CloudKit | |
// https://github.com/macmade/user-defaults/blob/master/swift/Preferences.swift | |
/******************************************************************************* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2017 Jean-David Gadina - www.xs-labs.com |
// | |
// Activity.swift | |
// | |
// Created by Zachary Waldowski on 8/21/16. | |
// Copyright © 2016 Zachary Waldowski. Licensed under MIT. | |
// | |
import os.activity | |
private final class LegacyActivityContext { |
// from https://oleb.net/blog/2016/08/swift-3-strings/ | |
extension String { | |
func wrapped(after: Int) -> [String] { | |
var i = 0 | |
let lines = self.characters.split(omittingEmptySubsequences: false) { character in | |
switch character { | |
case "\n", | |
" " where i >= after: | |
i = 0 |
// from https://oleb.net/blog/2016/08/swift-3-strings/ | |
extension String { | |
func wrapped(after: Int) -> [String] { | |
var i = 0 | |
let lines = self.characters.split(omittingEmptySubsequences: false) { character in | |
switch character { | |
case "\n", | |
" " where i >= after: | |
i = 0 |
I hereby claim:
To claim this, I am signing this object: