Ingredients
- 2-3 cloves garlic, minced
- 1/3 cup dry white wine
- 1 pint heavy cream
- 1 medium tomato (or 2 Roma tomatoes)
- 1 tablespoon butter
- 5-6 leaves fresh basil, chopped
- parmesan cheese
- salt and pepper to taste
Ingredients
// public interface | |
@interface UBNTDiscardableThumbnail : NSObject<NSDiscardableContent> | |
+ (instancetype)discardableThumbnailWithImage:(UIImage *)image; | |
- (instancetype)initWithImage:(UIImage *)thumbnail; | |
@property (nonatomic, readonly) UIImage *thumbnail; | |
@end |
CGRect CGRectIntegralScaledEx(CGRect rect, CGFloat scale) | |
{ | |
return CGRectMake(floorf(rect.origin.x * scale) / scale, floorf(rect.origin.y * scale) / scale, ceilf(rect.size.width * scale) / scale, ceilf(rect.size.height * scale) / scale); | |
} | |
CGRect CGRectIntegralScaled(CGRect rect) | |
{ | |
return CGRectIntegralScaledEx(rect, [[UIScreen mainScreen] scale]); | |
} |
import UIKit | |
extension UIView { | |
// Declarative Auto Layout helper. Does the same thing as creating a layout constraint but feels more intuitive. | |
// Also, it remembers to set translatesAutoresizingMaskIntoConstraints = false and allows you to set a constraint's | |
// priority all in a single method call | |
// Plus you also don't have to worry about activating the constraint | |
// Returns: the created constraint in case you wish to hold onto it | |
@discardableResult public func pin(_ attr1: NSLayoutConstraint.Attribute, to attr2: NSLayoutConstraint.Attribute = .notAnAttribute, of view2: Any? = nil, relatedBy relation: NSLayoutConstraint.Relation = .equal, multiplier: CGFloat = 1, constant c: CGFloat = 0, priority: UILayoutPriority = UILayoutPriority.required, isActive: Bool = true) -> NSLayoutConstraint { |
YMatterType is a framework that assists in getting typography done right when constructing iOS user interfaces from Figma-based designs.
YMatterType aims to achieve the following goals: