GithubHelp home page GithubHelp logo

vladyankovenko / textfieldscatalog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chausovsurfstudio/textfieldscatalog

0.0 0.0 0.0 67.86 MB

This is catalog of various input field with great opportunities for validation and formatting.

License: MIT License

Ruby 1.28% Objective-C 0.16% Swift 93.86% Makefile 0.97% Liquid 3.72%

textfieldscatalog's Introduction

TextFieldsCatalog

GitHubActions Build Status Documentation Version Platform License Swift Version codebeat badge

Overview

Данный репозиторий содержит коллекцию различных полей ввода, предоставляющих богатые возможности по проверке введенных значений и форматированию текста при вводе. К тому же, они просто симпатичные и хорошо кастомизируются :)

Полная документация - доступна на GitHub Pages

Installation

Cocoapods

Просто добавьте следующую строку в ваш Podfile:

pod 'TextFieldsCatalog'

First Step Guide

Предположим, вам необходимо реализовать поле ввода для Имени пользователя, которое должно быть от 5 до 25 символов и вас устраивает дизайн UnderlinedTextField, предоставляемый из коробки.

Вам необходимо выполнить следующие шаги:

  • добавить в Podfile pod 'TextFieldsCatalog', выполнить pod install, открыть .workspace
  • добавить на экран UIView, изменить его класс на UnderlinedTextField, установить высоту равной 77
  • во ViewController сделать IBOutlet на это поле, назвать, к примеру, textField
  • сконфигурировать поле ввода
textField.configure(placeholder: "Имя", maxLength: 25)
textField.configure(autocapitalizationType: .words)
textField.validator = TextFieldValidator(minLength: 5, maxLength: 25, regex: nil)

Этих действий вполне достаточно для базовой конфигурации поля ввода. Для получения более подробной информации - рекомендуется посмотреть Example проект и прочитать документацию.

Строение репозитория

Фактически, репозиторий включает в себя как и сам pod, так и полноценный Example проект, на котором можно сразу протестировать на деле новое поле или изменения в существующих.

Документация

Документация по тестовому проекту

Документ по проекту с каталогом полей ввода

Документация по возможностям полей ввода

Лицензия

TextFieldsCatalog распространяется под MIT лицензией

textfieldscatalog's People

Contributors

fixique avatar tranina-olesya avatar alelenka avatar kombatkos avatar chausovsurfstudio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.