This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//swiftlint:disable all | |
struct EnvironmentVars { | |
/// Generated using 'EnvironmentVars.stencil' template | |
static let secretNumberOne = "{{ argument.SECRET_ONE }}" | |
static let secretNumberTwo = "{{ argument.SECRET_TWO }}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
extension CollectionView { | |
typealias UIKitCollectionView = CollectionViewWithDataSource<SectionIdentifierType, ItemIdentifierType> | |
typealias DataSource = UICollectionViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> | |
typealias Snapshot = NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType> | |
typealias UpdateCompletion = () -> Void | |
} | |
struct CollectionView<SectionIdentifierType, ItemIdentifierType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftUI | |
public protocol SectionProtocol: Hashable { | |
associatedtype Item: Hashable | |
var items: [Item] { get } | |
} | |
extension CollectionView { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension HorizontalAlignment { | |
private enum CenterAlignmentID: AlignmentID { | |
static func defaultValue(in dimension: ViewDimensions) -> CGFloat { | |
return dimension[HorizontalAlignment.center] | |
} | |
} | |
static var horizontalCenterAlignment: HorizontalAlignment { | |
HorizontalAlignment(CenterAlignmentID.self) |