From 1a7ef721f0565cb62a54e273c43d0ae9528b4590 Mon Sep 17 00:00:00 2001 From: Martin Barreto Date: Mon, 26 Sep 2016 19:46:03 -0300 Subject: [PATCH] minor fix --- Source/Core/Validation.swift | 5 +++-- Source/Rows/Common/DateFieldRow.swift | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/Validation.swift b/Source/Core/Validation.swift index 9f1b5a306..7477a2c34 100644 --- a/Source/Core/Validation.swift +++ b/Source/Core/Validation.swift @@ -26,9 +26,10 @@ import Foundation public struct ValidationError: Equatable { - public let msg: String? - public init(msg: String? = nil) { + public let msg: String + + public init(msg: String) { self.msg = msg } } diff --git a/Source/Rows/Common/DateFieldRow.swift b/Source/Rows/Common/DateFieldRow.swift index 810f4f1d8..265a93dea 100644 --- a/Source/Rows/Common/DateFieldRow.swift +++ b/Source/Rows/Common/DateFieldRow.swift @@ -64,7 +64,7 @@ open class DateCell : Cell, CellType { if let minuteIntervalValue = (row as? DatePickerRowProtocol)?.minuteInterval{ datePicker.minuteInterval = minuteIntervalValue } - if isHighlighted { + if row.isHighlighted { textLabel?.textColor = tintColor } }