[ASDisplayNode] Majorly Improve Descriptions (#2208)

* Up our description game big time

* Couple tweaks

* Explain logic

* Fix indentation
This commit is contained in:
Adlai Holler
2016-09-07 20:11:27 -07:00
committed by GitHub
parent 0aeefaf25f
commit 5593bfa4d1
11 changed files with 341 additions and 58 deletions

View File

@@ -46,13 +46,13 @@ ASDISPLAYNODE_INLINE NSString * _Nonnull NSStringFromASInterfaceState(ASInterfac
[states addObject:@"MeasureLayout"];
}
if (ASInterfaceStateIncludesPreload(interfaceState)) {
[states addObject:@" | Preload"];
[states addObject:@"Preload"];
}
if (ASInterfaceStateIncludesDisplay(interfaceState)) {
[states addObject:@" | Display"];
[states addObject:@"Display"];
}
if (ASInterfaceStateIncludesVisible(interfaceState)) {
[states addObject:@" | Visible"];
[states addObject:@"Visible"];
}
return [NSString stringWithFormat:@"{ %@ }", [states componentsJoinedByString:@" | "]];
}