Make properties immutable

This commit is contained in:
ismailgulek
2021-04-29 11:10:17 +03:00
parent 57d52c990b
commit 8c5f3aac48
@@ -20,10 +20,10 @@ import UIKit
class DialpadButton: UIButton {
struct ViewData {
var title: String
var tone: SystemSoundID
var subtitle: String?
var showsSubtitleSpace: Bool
let title: String
let tone: SystemSoundID
let subtitle: String?
let showsSubtitleSpace: Bool
init(title: String, tone: SystemSoundID, subtitle: String? = nil, showsSubtitleSpace: Bool = false) {
self.title = title