SettingsCellModel.swift 694 Bytes
Newer Older
domenicw's avatar
domenicw committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
//  SettingsCellModel.swift
//  Amiv
//
//  Created by Domenic Wüthrich on 18.09.18.
//  Copyright © 2018 Amiv an der ETH. All rights reserved.
//

import Foundation

public class SettingsCellModel {
    
    // MARK: - Variables
    
    public var text: String
    
    public var detailText: String?
    
    public var action: SettingsAction
    
    public var cellType: SettingsCellType
    
    // MARK: - Initializers
    
    public init(text: String, detailText: String? = nil, action: SettingsAction, cellType: SettingsCellType = .normal) {
        self.text = text
        self.detailText = detailText
        self.action = action
        self.cellType = cellType
    }
    
}