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 PopNetworking | |
public enum ReauthorizationMethod { | |
/// Your access token is invalid and needs to be refreshed. Once reauthorization is complete your request will be retried | |
case refreshAuthorization | |
/// Your access token is valid, retry the request | |
case retryRequest |
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 | |
extension UIStackView { | |
/** | |
Removes or adds views to a stackview. This is usefull if you have a stackview within a tableviewcell or collectionviewcell | |
- Parameters: | |
- desiredCount: The new total count of `ViewType` | |
- viewType: Your custom view type | |
Becareful using this if all of the stackview's arranged subviews are not of the same type! The returned array could be missing views & your datasource index might not match up resulting in an index out of bounds crash. | |
~~~ |
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 | |
/** | |
Creates an array of weak reference objects. | |
- Important: | |
Because this is an array of weak objects, the objects in the array can be removed at any time. | |
The collection itself will handle removing nil objects (garbage collection) via the private function cleanUpNilContainers() | |
*/ |
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
// | |
// CappedCollection.swift | |
// UprightWatchApp Extension | |
// | |
// Created by Dan_Koza on 11/29/18. | |
// Copyright © 2018 DanielKoza. All rights reserved. | |
// | |
import Foundation |
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
[ | |
{ | |
"_id" : "4f14f8728b53227696000001", | |
"body" : "Hey 6pm PT", | |
"intent" : 2, | |
"privacy" : 1, | |
"metoos_count" : 0, | |
"checked_in": false, | |
"checkins_count" : 0, | |
"tagged_users_count" : 0, |