Coder Social home page Coder Social logo

sainiutils's Introduction

SAINI UTILS

CI Status Version License Platform

Introduction

SainiUtils is used to extend the basic functionality of UIKit elements like UIView,UIButton,UITextfield etc.

Purpose

SainiUtils basic purpose to reduce your development time by extened the basic functionality of UIKit elements.

Installation

SainiUtils is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SainiUtils'

Features

UIView
1.)sainiCircle
2.)sainiBlur
3.)sainiGradientColor
4.)sainiCornerRadius
5.)sainiRoundCorners
6.)sainiShadow
7.)sainiShadowWithCornerRadius
8.)sainiShadowWithGradientAndCornerRadius
9.)sainiGrowAndShrink
10.)sainiRotate
11.)sainiStopRotating
12.)sainiTapToChangeColor
13.)sainiScreenshot
14.)sainiAddBorderWithColor
15.)sainiDrawDashedBorderAroundView
16.)sainiFadeIn
17.)sainiFadeOut
18.)sainiFadeOutInfinite
19.)sainiFadeInInfinite
20.)sainiShowLoader
21.)sainiRemoveLoader
22.)0sainiRotateByAngle
23.)sainiDashedLine
24.)sainiAddTapGesture
25.)sainiPulsate
26.)sainiFlash
27.)sainiShake
28.)sainiShowToast
UITextField
29.)sainiSetLeftPadding
30.)sainiSetRightPadding
31.)sainiSetLeftIcon
32.)sainiSetRightIcon
UITableView
33.)sainiSetEmptyMessage
34.)restore
Date
35.)sianiFirstDayOfWeek
36.)sainiAddWeeks
37.)sainiWeeksAgo
38.)sainiAddDays
39.)sainiDaysAgo
40.)sainiAddHours
41.)sainiHoursAgo
42.)sainiAddMinutes
43.)sainiMinutesAgo
44.)sainiStartOfDay
45.)sainiEndOfDay
46.)sainiZeroBasedDayOfWeek
47.)sainiHoursFrom
48.)sainiDaysBetween
49.)sainiPercentageOfDay
50.)sainiNumberOfWeeksInMonth
51.)sainiFormattedDateString

Some handy Functions

sainiColorFromHex

let demoLbl = UILabel()
demoLbl.textColor = sainiColorFromHex(hex: "#687f9")

sainiCompressImage

 //Image Compression to 10th of original size
 let image = sainiCompressImage(image: UIImage(named: "someImage"))

sainiSignatureView

 //Assign sainiSignatureView to any UIView class and it will behave as an signatureView 
 

sainiCardView

 //Assign sainiCardView to any UIView class and it will behave as an CardView 
 

sainiTimesAgo

 let timeAgoStr = sainiTimesAgo(78789877387)
      print(timeAgoStr)
      //2 Min ago
 

Author

rohitsaini91, [email protected]

License

SainiUtils is available under the MIT license. See the LICENSE file for more info.

sainiutils's People

Contributors

rohitsaini91 avatar

Watchers

James Cloos 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.