Skip to content

Instantly share code, notes, and snippets.

@rodericj
Created April 11, 2014 21:18
Show Gist options
  • Save rodericj/10502436 to your computer and use it in GitHub Desktop.
Save rodericj/10502436 to your computer and use it in GitHub Desktop.
// When the connection state changes, update the label's color
RAC(headerView.batteryLabel, textColor) = [connectedStateSignal map:^id(id deviceConnectedState) {
return [deviceConnectedState integerValue] == MorseDeviceConnectedStateConnected ? [AVHexColor colorWithHex:0x666666] : [AVHexColor colorWithHex:0xF26322];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment