28 lines
793 B
Swift
28 lines
793 B
Swift
//
|
|
// CarouselSlotAlignmentModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Kanamarlapudi, Vasavi on 31/05/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Custom data type for the SlotAlignment prop for the 'carousel' component.
|
|
extension Carousel {
|
|
|
|
/// Used only when slot content have different heights or widths.
|
|
public struct CarouselSlotAlignmentModel: Equatable {
|
|
|
|
/// Used for vertical alignment of slot alignment.
|
|
public var vertical: Carousel.Vertical
|
|
|
|
/// Used for horizontal alignment of slot alignment.
|
|
public var horizontal: Carousel.Horizontal
|
|
|
|
public init(vertical: Carousel.Vertical, horizontal: Carousel.Horizontal) {
|
|
self.vertical = vertical
|
|
self.horizontal = horizontal
|
|
}
|
|
}
|
|
}
|