MMMScrollViewShadowsSettings
Objective-C
@interface MMMScrollViewShadowsSettings : NSObject
                Swift
class MMMScrollViewShadowsSettings : NSObject
                Holds configuration for MMMScrollViewShadows that can be set only on initialization time.
- 
                  
                  
The base shadow color is black with this amount of transparency applied to it.
Declaration
Objective-C
@property (nonatomic) CGFloat shadowAlpha;Swift
var shadowAlpha: CGFloat { get set } - 
                  
                  
The base shadow color, ensure this is an RGB color. Note that the alpha channel is ignored, use
shadowAlphainstead.Declaration
Objective-C
@property (nonatomic) UIColor *_Nonnull shadowColor;Swift
var shadowColor: UIColor { get set } - 
                  
                  
The value between 0 and 1 telling how close to an elliptical curve the shadow’s border should be.
when it’s 0, then the shadow is a normal rectangular one.
when it’s 1, then the gradient of the top (bottom) shadow forms an arc crossing the center of a shadow view and its both corners.
All values in-between adjust the point at which the gradient crosses the sides of the shadow views.
(The default value is 0.5.)
Declaration
Objective-C
@property (nonatomic) CGFloat shadowCurvature;Swift
var shadowCurvature: CGFloat { get set } - 
                  
                  
Disabled by default.
Declaration
Objective-C
@property (nonatomic) BOOL topShadowEnabled;Swift
var topShadowEnabled: Bool { get set } - 
                  
                  
The height of the top shadow view. (5px by default.)
Declaration
Objective-C
@property (nonatomic) CGFloat topShadowHeight;Swift
var topShadowHeight: CGFloat { get set } - 
                  
                  
YES, if the top shadow should be offset from the top edge of the scroll view by the top offset of content insets.
- The default value is NO.
 
Declaration
Objective-C
@property (nonatomic) BOOL topShadowShouldUseContentInsets;Swift
var topShadowShouldUseContentInsets: Bool { get set } - 
                  
                  
Disabled by default.
Declaration
Objective-C
@property (nonatomic) BOOL bottomShadowEnabled;Swift
var bottomShadowEnabled: Bool { get set } - 
                  
                  
The height of the bottom shadow view. (10px by default.)
Declaration
Objective-C
@property (nonatomic) CGFloat bottomShadowHeight;Swift
var bottomShadowHeight: CGFloat { get set } - 
                  
                  
YES, if the bottom shadow should be offset from the bottom edge of the scroll view by the bottom offset of content insets.
- The default value is NO.
 
Declaration
Objective-C
@property (nonatomic) BOOL bottomShadowShouldUseContentInsets;Swift
var bottomShadowShouldUseContentInsets: Bool { get set } - 
                  
                  
Undocumented
Declaration
Objective-C
- (nonnull id)init NS_DESIGNATED_INITIALIZER;Swift
init() 
      
    
      
    
        
            View on GitHub
          
      MMMScrollViewShadowsSettings Class Reference