Robert Moore 74a27253e8
Global replace of integral single-precision literals with integer literals. (#5709)
Global replace of integral single-precision literals with integer literals.

Regular expression used:
```perl
/[^\w]([0-9]+)\.[0]*[fF]/$1/
```
2018-11-08 14:02:04 -05:00

692 B

Customizing elevation

The elevation of a button can be changed for a given control state using setElevation:forState:.

See the Material Design shadow guidelines for a detailed overview of different shadow elevations.

For example, to make a button elevate on tap like a floating action button:

Swift

button.setElevation(6, for: .normal)
button.setElevation(12, for: .highlighted)

Objective-C

[button setElevation:6 forState:UIControlStateNormal];
[button setElevation:12 forState:UIControlStateNormal];