Slather logo

Coverage for "ChatLayoutSettings.swift" : 100.00%

(1 of 1 relevant lines covered)

ChatLayout/Classes/Core/ChatLayoutSettings.swift

1
//
2
// ChatLayout
3
// ChatLayoutSettings.swift
4
// https://github.com/ekazaev/ChatLayout
5
//
6
// Created by Eugene Kazaev in 2020-2021.
7
// Distributed under the MIT license.
8
//
9
10
import Foundation
11
import UIKit
12
13
/// `ChatLayout` settings.
14
public struct ChatLayoutSettings {
15
16
    /// Estimated item size for `ChatLayout`. This value will be used as the initial size of the item and the final size
17
    /// will be calculated using `UICollectionViewCell.preferredLayoutAttributesFitting(...)`.
18
    public var estimatedItemSize: CGSize?
19
20
    /// Spacing between the items in the section.
21
    public var interItemSpacing: CGFloat = 0
22
23
    /// Spacing between the sections.
24
    public var interSectionSpacing: CGFloat = 0
25
26
    /// Additional insets for the `ChatLayout` content.
27
    public var additionalInsets: UIEdgeInsets = .zero
23x
28
29
}