MDCShadowMetrics

@interface MDCShadowMetrics : NSObject

Metrics of the Material shadow effect.

These can be used if you require your own shadow implementation but want to match the material spec.

  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, readonly) CGFloat topShadowRadius
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, readonly) CGSize topShadowOffset
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, readonly) float topShadowOpacity
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, readonly) CGFloat bottomShadowRadius
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, readonly) CGSize bottomShadowOffset
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, readonly) float bottomShadowOpacity
  • The shadow metrics for manually creating shadows given an elevation.

    Declaration

    Objective-C

    + (nonnull MDCShadowMetrics *)metricsWithElevation:(CGFloat)elevation;

    Parameters

    elevation

    The shadow’s elevation in points.

    Return Value

    The shadow metrics.