String

public extension String
  • Returns nil if string is empty

    Declaration

    Swift

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

    Declaration

    Swift

    var nilIfNotValidParameterName: String?