Added ImageTintColor for theming FAB Button.
MODIFY
components/Buttons/examples/ButtonsTypicalUseExampleViewController.m
components/Buttons/examples/ButtonsTypicalUseExampleViewController.m
[[UIImage imageNamed:@"Plus"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[self.floatingButton setImage:plusImage forState:UIControlStateNormal];
[MDCFloatingButtonColorThemer applySemanticColorScheme:colorScheme toButton:self.floatingButton];
- [self.floatingButton setImageTintColor:colorScheme.onSecondaryColor
- forState:UIControlStateNormal];
[self.view addSubview:self.floatingButton];
self.buttons = @[

MODIFY
components/Buttons/examples/FloatingButtonExampleViewController.m
components/Buttons/examples/FloatingButtonExampleViewController.m
inMode:MDCFloatingButtonModeExpanded];
[MDCFloatingButtonColorThemer applySemanticColorScheme:colorScheme
toButton:self.miniFloatingButton];
- [self.miniFloatingButton setImageTintColor:colorScheme.onSecondaryColor
- forState:UIControlStateNormal];
-
self.defaultFloatingButton = [[MDCFloatingButton alloc] init];
self.defaultFloatingButton.translatesAutoresizingMaskIntoConstraints = NO;
[self.defaultFloatingButton setImage:plusImage forState:UIControlStateNormal];
[MDCFloatingButtonColorThemer applySemanticColorScheme:colorScheme
toButton:self.defaultFloatingButton];
- [self.defaultFloatingButton setImageTintColor:colorScheme.onSecondaryColor
- forState:UIControlStateNormal];
self.largeIconFloatingButton = [[MDCFloatingButton alloc] init];
self.largeIconFloatingButton.translatesAutoresizingMaskIntoConstraints = NO;
inMode:MDCFloatingButtonModeExpanded];
[MDCFloatingButtonColorThemer applySemanticColorScheme:colorScheme
toButton:self.largeIconFloatingButton];
- [self.largeIconFloatingButton setImageTintColor:colorScheme.onSecondaryColor
- forState:UIControlStateNormal];
[self.view addSubview:self.iPadLabel];
[self.view addSubview:self.miniFloatingButton];

MODIFY
components/Buttons/src/ColorThemer/MDCFloatingButtonColorThemer.m
components/Buttons/src/ColorThemer/MDCFloatingButtonColorThemer.m
toButton:(nonnull MDCFloatingButton *)button {
[self resetUIControlStatesForButtonTheming:button];
[button setBackgroundColor:colorScheme.secondaryColor forState:UIControlStateNormal];
+ [button setImageTintColor:colorScheme.onSecondaryColor forState:UIControlStateNormal];
+
button.disabledAlpha = 1.f;
}

MODIFY
components/Buttons/tests/unit/ButtonsColorThemerTests.m
components/Buttons/tests/unit/ButtonsColorThemerTests.m
@@ -235,6 +235,7 @@ static const CGFloat kEpsilonAccuracy = 0.001f;
for (NSUInteger state = 0; state <= maximumStateValue; ++state) {
if (state == UIControlStateNormal) {
XCTAssertEqual([button backgroundColorForState:state], colorScheme.secondaryColor);
+ XCTAssertEqual([button imageTintColorForState:state], colorScheme.onSecondaryColor);
} else {
XCTAssertEqual([button backgroundColorForState:state], nil);
}

Added ImageTintColor for theming FAB Button. (#3442)

https://github.com/material-components/material-components-ios/pull/3442