Unclaimed project
Are you a maintainer of Snap.swift? Claim this project to take control of your public changelog and roadmap.
func test_box_with_gradient_layer() {
let layer = CAGradientLayer()
layer.frame = CGRect(x: 0, y: 0, width: 100, height: 100)
expect(layer).toMatchSnapshot()
}
@import XCTest;
#import <Snap_swift/Snap_swift-swift.h>
#import <Snap_swift/Snap.h>
@interface SnapTests : XCTestCase
@end
@implementation SnapTests
- (void)test_box_with_text_aligned_to_center {
UIView *view = [BoxWithTextAlignedToCenterView new];
verifyView(view); // or verifyLayer if it's a CALayer subclass
}
@end