Skip to content

sentryco/SecureInput

Repository files navigation

Tests codebeat badge

SecureInput

Secure input UI (macOS / iOS)

1. SecureInputView

secureinputview

2. PasswordTextField

passwordtextfield

3. SecTextContainer

passwordtextfield

4. SecureTextView

passwordtextfield

Description

This repository provides a collection of secure text input UI components, each with its unique features and trade-offs. They are designed to serve various purposes in applications that prioritize secure data handling. For more detailed information and the rationale behind each component, please refer to the code comments within the UI components.

Features

  1. SecureInputView: obfuscation-toggle, SecureText
  2. PasswordTextField: obfuscation-toggle, SecureText and restrictor-callback
  3. SecTextContainer: obfuscation-toggle, attribute and multiline (Not using SecureText and not editable)
  4. SecureTextView: obfuscation-toggle, multiline (Not using SecureText)

Instalation

Add this to XCode or SPM:

.package(url: "https://github.com/sentryco/SecureInput", branch: "main")

Gotchas:

  • Add your own style to components by making new TextFieldStyles and apply them to the view struct components. This way the new style overrides the internal TextFieldStyles

Dependencies:

Todo

  • Add Attributed TextField that is editable
  • Only use the MockGen dep for the testing scope?

About

Secure input UI (macOS / iOS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages