Swiftpack.co - frogg/FredKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
frogg/FredKit
A collection of customised Swift extensions and classes I've written over the years which might be useful for others as well. I use Swift classes such as the Date extension and rounded buttons in almost every project nowadays.
.package(url: "https://github.com/frogg/FredKit.git", from: "v0.0.14")

FredKit

A collection of customised Swift extensions and classes I've written over the years which might be useful for others as well. I use Swift classes such as the Date extension and rounded buttons in almost every project nowadays.

Rounded Buttons

  • Specify corner radius
  • Uses advanced continous corners instead of perfectly round corners

Date Formatting

  • humanReadableDateString
  • humanReadableDateAndTimeString
  • shortTimeString
  • shortDateString
  • shortWeekDay
  • shortMonth
  • shortDate
  • longDate
  • compactDateTimeString
  • isInFuture

TimeIntervals

  • nanosecond
  • millisecond
  • second
  • minute
  • hour
  • day
  • week
  • month
  • year
  • decade
  • century
  • millenium

Working with Colors

  • Contrast calculation (dark or light background required for a font with specific color?)
  • Generate color from string

Rounded Font

  • Creates the rounded SF font version

Simplified NSLocalizedString

Use NSLocalizedString("hello world!") without the additional comment attribute.

Strings

  • Capitalize first character of a string
  • SHA1 hash
  • Is string almost equal to other string?
  • Subscript (get char at index)
  • Levenshtein distance
  • Get CGPath of String

FileManager extensions

  • Ensure folder exists
  • documentsDirectory URL

UIView

  • snapshot UIView

FredKitSubscriptionManager

Makes working with Subscriptions on iOS even easier. Uses SwiftyStoreKit and Apple‘s StoreKit under the hood.

UITableView

registerMainBundleNibs: Register multiple cell Nibs at once.

UIViewController

  • wrappedInNavigationController
  • topViewController

GitHub

link
Stars: 2
Last commit: 6 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Dependencies

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics