Unclaimed project
Are you a maintainer of Snap.swift? Claim this project to take control of your public changelog and roadmap.
Changelog
Snapshot testing in a snap ๐จ
Last updated almost 8 years ago
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
๏ฃฟ Now we have become very big, Different from the original idea. Collect premium software in various categories.
The Swift Programming Language
A tool for creating and running Linux containers using lightweight virtual machines on a Mac. It is written in Swift, and optimized for Apple silicon.
The modern video player for macOS.