Skip to content

Instantly share code, notes, and snippets.

View richardgroves's full-sized avatar

Richard Groves richardgroves

View GitHub Profile
//
// TextStyle.swift
//
// Created by Rob Napier on 12/20/19.
// Copyright © 2019 Rob Napier. All rights reserved.
//
import SwiftUI
public struct TextStyle {
clone
-----
user system total real
Alamofire 0.000133 0.001260 0.914293 ( 3.933993)
Charts 0.000084 0.000621 5.080886 ( 16.419969)
SDWebImage 0.000082 0.000654 0.629801 ( 7.594104)
ReactiveCocoa 0.000077 0.000607 1.260152 ( 8.487502)
lottie-ios 0.000089 0.000673 0.889113 ( 5.643609)
SwiftyJSON 0.000075 0.000631 0.133790 ( 1.704759)
vapor 0.000080 0.000636 0.864172 ( 7.225282)
@richardgroves
richardgroves / CCTextureCache+AddTexture.h
Created August 3, 2015 10:44
cocos2d - Category on CCTextureCache to allow specification of image scale when adding a texture
//
// CCTextureCache+AddTexture.h
//
//
// Created by Richard Groves on 12/06/2014.
//
// Extension for Cocos2d to support creating textures from images that are already loaded and have a contentScale != 1.0
#import "CCTextureCache.h"
@richardgroves
richardgroves / CCActionUpdateWithBlock.h
Last active August 29, 2015 14:17
CCActionUpdateWithBlock- A Cocos2D Action that uses a block to do the update - intention is to stop having to create a new class for making simple actions
/*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2015 Richard Groves
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is