ServiceCredential.swift 709 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // ServiceCredential.swift
  3. // Loop
  4. //
  5. // Created by Nate Racklyeft on 7/2/16.
  6. // Copyright © 2016 Nathan Racklyeft. All rights reserved.
  7. //
  8. import UIKit
  9. // Represents a credential for a service, including its text input traits
  10. struct ServiceCredential {
  11. // The localized title of the credential (e.g. "Username")
  12. let title: String
  13. // The localized placeholder text to assist text input
  14. let placeholder: String?
  15. // Whether the credential is considered secret. Correponds to the `secureTextEntry` trait.
  16. let isSecret: Bool
  17. // The type of keyboard to use to enter the credential
  18. let keyboardType: UIKeyboardType
  19. // The credential value
  20. var value: String?
  21. }