GlidingConfig

public struct GlidingConfig

Configuration struct. Override shared property to apply new configuration.

  • Shared instance of configuration. Override this property or change values directly.

    Declaration

    Swift

    public static var shared: GlidingCollection.GlidingConfig
  • Side insets of GlidiingCollection view. Only left & right side insets will take effect.

    Declaration

    Swift

    public var sideInsets: UIEdgeInsets
  • Duration of animation between GlidingCollection sections.

    Declaration

    Swift

    public var animationDuration: Double
  • Spacing between vertical stack of items.

    Declaration

    Swift

    public var buttonsSpacing: CGFloat
  • Font of each element in vertical stack.

    Declaration

    Swift

    public var buttonsFont: UIFont
  • Scale factor of inactive sections buttons.

    Declaration

    Swift

    public var buttonsScaleFactor: CGFloat
  • Active section button color.

    Declaration

    Swift

    public var activeButtonColor: UIColor
  • Inactive sections buttons color.

    Declaration

    Swift

    public var inactiveButtonsColor: UIColor
  • Space between collectionView’s cells.

    Declaration

    Swift

    public var cardsSpacing: CGFloat
  • Size of collectionView’s cells.

    Declaration

    Swift

    public var cardsSize: CGSize
  • Apply parallax effect to horizontal cards.

    Declaration

    Swift

    public var isParallaxEnabled: Bool
  • Shadow color.

    Declaration

    Swift

    public var cardShadowColor: UIColor
  • Shadow offset: width - horizontal; height - vertical.

    Declaration

    Swift

    public var cardShadowOffset: CGSize
  • Shadow radius or blur.

    Declaration

    Swift

    public var cardShadowRadius: CGFloat
  • Shadow opacity.

    Declaration

    Swift

    public var cardShadowOpacity: Float