String

public extension String
extension String: Error
  • Returns nil if string is empty

    Declaration

    Swift

    var nilIfEmpty: String? { get }
  • Returns nil if string is empty or contains _ character

    Declaration

    Swift

    var nilIfNotValidParameterName: String? { get }