Add dial pad tones

This commit is contained in:
ismailgulek
2021-02-15 15:58:19 +03:00
parent ba20945066
commit 18a847fc78
4 changed files with 31 additions and 16 deletions
@@ -21,11 +21,13 @@ class DialpadButton: UIButton {
struct ViewData {
var title: String
var tone: SystemSoundID
var subtitle: String?
var showsSubtitleSpace: Bool
init(title: String, subtitle: String? = nil, showsSubtitleSpace: Bool = false) {
init(title: String, tone: SystemSoundID, subtitle: String? = nil, showsSubtitleSpace: Bool = false) {
self.title = title
self.tone = tone
self.subtitle = subtitle
self.showsSubtitleSpace = showsSubtitleSpace
}