Skip to content

Commit

Permalink
(Maint) | Fix warnings and update project settings (#7)
Browse files Browse the repository at this point in the history
- Fix compiler and analyzer warnings
- Update project settings to Xcode 10.1
  • Loading branch information
eneko authored Feb 5, 2019
1 parent 289a1fd commit 47a1ab4
Show file tree
Hide file tree
Showing 12 changed files with 106 additions and 41 deletions.
4 changes: 2 additions & 2 deletions MBDebugPanel.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
54 changes: 27 additions & 27 deletions MBDebugPanel/MBDebugPanel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,14 @@
9A5DE2C51EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponentCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A5DE29D1EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponentCell.xib */; };
9A5DE2C61EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponentCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A5DE29D1EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponentCell.xib */; };
9A5DE2CA1EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2A11EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };
9A5DE2CE1EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A21EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.m */; };
9A5DE2CF1EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A21EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.m */; };
9A5DE2D31EA55DC500C90F62 /* MBDebugPanelSimpleComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2A31EA55DC500C90F62 /* MBDebugPanelSimpleComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };
9A5DE2D71EA55DC500C90F62 /* MBDebugPanelSimpleComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A41EA55DC500C90F62 /* MBDebugPanelSimpleComponent.m */; };
9A5DE2D81EA55DC500C90F62 /* MBDebugPanelSimpleComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A41EA55DC500C90F62 /* MBDebugPanelSimpleComponent.m */; };
9A5DE2DC1EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2A51EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };
9A5DE2E01EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A61EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.m */; };
9A5DE2E11EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A61EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.m */; };
9A5DE2E51EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2A71EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };
9A5DE2E91EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A81EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.m */; };
9A5DE2EA1EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2A81EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.m */; };
9A5DE2EE1EA55DC500C90F62 /* MBDebugPanel.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2A91EA55DC500C90F62 /* MBDebugPanel.h */; settings = {ATTRIBUTES = (Public, ); }; };
9A5DE2F21EA55DC500C90F62 /* MBDebugPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2AA1EA55DC500C90F62 /* MBDebugPanel.m */; };
9A5DE2F31EA55DC500C90F62 /* MBDebugPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A5DE2AA1EA55DC500C90F62 /* MBDebugPanel.m */; };
9A5DE2F71EA55DC500C90F62 /* MBDebugPanelComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2AB1EA55DC500C90F62 /* MBDebugPanelComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };
9A5DE2FB1EA55DC500C90F62 /* MBDebugPanel_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A5DE2AD1EA55DC500C90F62 /* MBDebugPanel_Private.h */; };
Expand Down Expand Up @@ -189,18 +184,10 @@
9A10FA3C1EA5633500D2B095 /* MBAppDelegate.m */,
9A10FA3D1EA5633500D2B095 /* MBDebugPanelTestsApplicationContainer-Info.plist */,
9A10FA3E1EA5633500D2B095 /* MBDebugPanelTestsApplicationContainer-Prefix.pch */,
9A10FA3F1EA5633500D2B095 /* Supporting Files */,
);
path = MBDebugPanelTestsApplicationContainer;
sourceTree = "<group>";
};
9A10FA3F1EA5633500D2B095 /* Supporting Files */ = {
isa = PBXGroup;
children = (
);
path = "Supporting Files";
sourceTree = "<group>";
};
9A5DE2981EA55DC500C90F62 /* Sources */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -448,7 +435,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0830;
LastUpgradeCheck = 0830;
LastUpgradeCheck = 1010;
TargetAttributes = {
9AB6E68A1EA5574F002DB509 = {
CreatedOnToolsVersion = 8.3.1;
Expand Down Expand Up @@ -482,10 +469,10 @@
projectDirPath = "";
projectRoot = "";
targets = (
FDCFACEE18A49E9200E4AD74 /* MBDebugPanelTests */,
FD3CB35B18AC656F00FD9427 /* MBDebugPanelTestsApplicationContainer */,
9AB6E68A1EA5574F002DB509 /* MBDebugPanel iOS */,
9AB6E6921EA5574F002DB509 /* MBDebugPanel iOSTests */,
FDCFACEE18A49E9200E4AD74 /* MBDebugPanelTests */,
FD3CB35B18AC656F00FD9427 /* MBDebugPanelTestsApplicationContainer */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -564,13 +551,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9A5DE2F21EA55DC500C90F62 /* MBDebugPanel.m in Sources */,
9A5DE2E01EA55DC500C90F62 /* MBDebugPanelSimpleSwitchComponent.m in Sources */,
9A10FA431EA5633500D2B095 /* MBAppDelegate.m in Sources */,
9A5DE2E91EA55DC500C90F62 /* MBDebugPanelSimpleTextFieldComponent.m in Sources */,
9A5DE2CE1EA55DC500C90F62 /* MBDebugPanelSimpleButtonComponent.m in Sources */,
9A10FA421EA5633500D2B095 /* main.m in Sources */,
9A5DE2D71EA55DC500C90F62 /* MBDebugPanelSimpleComponent.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -792,7 +774,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "MBDebugPanel iOSTests/Info.plist";
INFOPLIST_FILE = "Tests/MBDebugPanelTests/Supporting Files/Info-Tests-iOS.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
Expand Down Expand Up @@ -842,7 +824,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "MBDebugPanel iOSTests/Info.plist";
INFOPLIST_FILE = "Tests/MBDebugPanelTests/Supporting Files/Info-Tests-iOS.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
Expand Down Expand Up @@ -959,18 +941,27 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand All @@ -986,17 +977,26 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand Down Expand Up @@ -1035,7 +1035,7 @@
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "MBDebugPanelTests/MBDebugPanelTests-Prefix.pch";
GCC_PREFIX_HEADER = "Tests/MBDebugPanelTests/MBDebugPanelTests-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand All @@ -1047,7 +1047,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "MBDebugPanelTests/MBDebugPanelTests-Info.plist";
INFOPLIST_FILE = "Tests/MBDebugPanelTests/MBDebugPanelTests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1085,14 +1085,14 @@
);
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "MBDebugPanelTests/MBDebugPanelTests-Prefix.pch";
GCC_PREFIX_HEADER = "Tests/MBDebugPanelTests/MBDebugPanelTests-Prefix.pch";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "MBDebugPanelTests/MBDebugPanelTests-Info.plist";
INFOPLIST_FILE = "Tests/MBDebugPanelTests/MBDebugPanelTests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,9 +26,41 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9AB6E68A1EA5574F002DB509"
BuildableName = "MBDebugPanel.framework"
BlueprintName = "MBDebugPanel iOS"
ReferencedContainer = "container:MBDebugPanel.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES"
testExecutionOrdering = "random">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9AB6E6921EA5574F002DB509"
BuildableName = "MBDebugPanel iOSTests.xctest"
BlueprintName = "MBDebugPanel iOSTests"
ReferencedContainer = "container:MBDebugPanel.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9AB6E68A1EA5574F002DB509"
BuildableName = "MBDebugPanel.framework"
BlueprintName = "MBDebugPanel iOS"
ReferencedContainer = "container:MBDebugPanel.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ @interface MBDebugPanelSimpleButtonComponentCell : UITableViewCell
@implementation MBDebugPanelSimpleButtonComponentCell
-(void)prepareForReuse
{
[super prepareForReuse];
[self.button removeTarget:nil
action:NULL
forControlEvents:UIControlEventTouchUpInside];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ @interface MBDebugPanelSimpleSwitchComponentCell : UITableViewCell
@implementation MBDebugPanelSimpleSwitchComponentCell
-(void)prepareForReuse
{
[super prepareForReuse];
[self.theSwitch removeTarget:nil
action:NULL
forControlEvents:UIControlEventValueChanged];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@interface MBDebugPanelSimpleTextFieldComponent : MBDebugPanelSimpleComponent <MBDebugPanelComponent, UITextFieldDelegate>
@property (nonatomic, copy, readonly) NSString *title;
@property (nonatomic, copy, readonly) NSString *placeholderText;
@property (nonatomic, copy, readonly) NSString *(^initialText)();
@property (nonatomic, copy, readonly) NSString *(^initialText)(void);
@property (nonatomic, copy, readonly) void(^onEditingDidEnd)(NSString *text);

/** Create a new text field component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ @interface MBDebugPanelSimpleTextFieldComponentCell : UITableViewCell
@implementation MBDebugPanelSimpleTextFieldComponentCell
-(void)prepareForReuse
{
[super prepareForReuse];
self.textField.delegate = nil;
}
@end

@interface MBDebugPanelSimpleTextFieldComponent()
@property (nonatomic, copy, readwrite) NSString *title;
@property (nonatomic, copy, readwrite) NSString *placeholderText;
@property (nonatomic, copy, readwrite) NSString *(^initialText)();
@property (nonatomic, copy, readwrite) NSString *(^initialText)(void);
@property (nonatomic, copy, readwrite) void(^onEditingDidEnd)(NSString *text);
@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ - (void)testRegistersForCellReuse

// Get all the cell instances in the table
NSMutableSet *cellInstances = [NSMutableSet setWithArray:[tableView visibleCells]];
int cellsBeforeReloading = [cellInstances count];
int cellsAfterReloading;
NSUInteger cellsBeforeReloading = [cellInstances count];
NSUInteger cellsAfterReloading;

// Reload the table
[tableView reloadData];
Expand All @@ -84,7 +84,7 @@ - (void)testRegistersForCellReuse
cellsAfterReloading = [cellInstances count];

// Object count should remain the same (cells should be reused)
XCTAssertEqualWithAccuracy(cellsAfterReloading, cellsBeforeReloading, 1, @"No more than 1 extra cell instance should have been created. (Had %d before scrolling, and %d after scrolling)", cellsBeforeReloading, cellsAfterReloading);
XCTAssertEqualWithAccuracy(cellsAfterReloading, cellsBeforeReloading, 1, @"No more than 1 extra cell instance should have been created. (Had %lul before scrolling, and %lul after scrolling)", cellsBeforeReloading, cellsAfterReloading);

}

Expand Down
11 changes: 6 additions & 5 deletions MBDebugPanel/Tests/MBDebugPanelTests/MBDebugPanelTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ static void(^dummySwitchHanlder)(void) = ^{
-(id<MBDebugPanelComponent>)makeSwitch
{
return [[MBDebugPanelSimpleSwitchComponent alloc] initWithTitle:@"switch"
onSwitchChanged:nil];
initialValue:true
onSwitchChanged:nil];
}

#pragma mark tests
Expand Down Expand Up @@ -100,7 +101,7 @@ -(void)testCanRemoveAComponent
-(void)testOnlyOneSectionSupported /*right now*/
{
id<UITableViewDataSource, UITableViewDelegate> panel = [MBDebugPanel sharedPanel_];
XCTAssert([panel numberOfSectionsInTableView:nil] == 1, @"Number of sections is hard-coded to 1.");
XCTAssert([panel numberOfSectionsInTableView:[UITableView new]] == 1, @"Number of sections is hard-coded to 1.");
}

-(void)testTableRowCountIsSameAsComponentCount
Expand All @@ -110,7 +111,7 @@ -(void)testTableRowCountIsSameAsComponentCount
[MBDebugPanel addComponent:[self makeButton]];

id<UITableViewDataSource, UITableViewDelegate> panel = [MBDebugPanel sharedPanel_];
XCTAssert([panel tableView:nil numberOfRowsInSection:0] == kCount, @"Row count should be equal to number of components");
XCTAssert([panel tableView:[UITableView new] numberOfRowsInSection:0] == kCount, @"Row count should be equal to number of components");
}

-(void)testReloadsTableDataWhenShown
Expand All @@ -131,8 +132,8 @@ -(void)testReloadsTableDataWhenShown
// We're expecting that -[UITableView reloadData] should have been called during the 'show' method
UITableViewCell *cell2 = [MBDebugPanel.sharedPanel_.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];

int tableRowCount = [MBDebugPanel.sharedPanel_.tableView numberOfRowsInSection:0];
XCTAssert(tableRowCount == 1, @"There should only be 1 row displayed in the table, instead saw %d", tableRowCount);
NSInteger tableRowCount = [MBDebugPanel.sharedPanel_.tableView numberOfRowsInSection:0];
XCTAssert(tableRowCount == 1, @"There should only be 1 row displayed in the table, instead saw %ld", (long)tableRowCount);
XCTAssert(cell1 != cell2, @"The displayed cell should be re-rendered and now of a different type, since it was from a different component. Renderered cell was instance of %@", NSStringFromClass(cell2.class));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
Loading

0 comments on commit 47a1ab4

Please sign in to comment.