Skip to content

Common tools and functions for swift development

License

Notifications You must be signed in to change notification settings

karostudio/KSCommons-Swift

Repository files navigation

Karo Studio Creative Agency

Karo Studio is a digital agency with solid design and development expertise.We build mobile and web applications. Visit us at karo.studio or drop us a line

CocoaPods License Version Swift 4.2 Instagram

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.3+
  • Xcode 10

Installation

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

pod 'KSCommons-Swift'

UIView Extensions

options that will empower your story builder

  • UIButton imagePadding
  • UIButton image tint color using tintOverlay property

  • UITextField placeHolderColor

  • UIView full shadow border and cornerRadius setup

  • UIView differnet corner radius for each border view.roundCorners()

Common Extensions

  • String strikeThrough which draws a line over text and returns a NSAttributedString
  • String toPersianNumber() which replaces numbers to persian value
  • String width and height which returns calculated size of text according to its font
  • Date relativeTime which returns relative time from now like 2 minutes ago

Author

Mohamad Yeganeh

License

KSCommons-Swift is available under the MIT license. See the LICENSE file for more info.