Personally useful Swift Extensions for iOS Development

Overview

Useful-Swift-Extensions

Personally useful Swift Extensions for iOS Development; cobbled together from a variety of development projects and StackOverflow posts.

  • Array+Extension - moving elements in an array from one index to another; sending elements to the front or the end of an array.

  • CALayer+Extension - sending CALayer's to the front or the back of the view stack.

  • Data+Extension - determining the image extension type of a data string representation of an image.

  • Date+Extension - returning an Int64 representation of the current time-stamp.

  • NSMutableAttribtedString+Extension - changing the color value of the whole or part of an NSMutableAttributedString.

  • NSNumber+Extension - determining a Bool value from a given number. Useful when dealing with numerical values as Bools in a JSON response.

  • Sequence+Extension - returning a given sequence with only unique items (removing duplicates).

  • String+Extension - a variety of useful functions, including:

    • Converting a string to a dictionary (useful when working with JSON)

    • Determining if a given data string is representing an image

    • Determining if a string is the URL for an image source

    • Getting an extension of a string (e.g., getting the extension value of "www.github.com")

    • Determining if a url-string is HTTP or HTTPS

  • UIApplication+Extension - determines if an app has been launched before or not; funciton for returning whatever the top-most ViewController currently is.

  • UIButton+Extension - adding a UIImage to a UIButton on the right-hand side.

  • UIColor+Extension - creating a UIColor from a hex-string or RGBA int values.

  • UIFont+Extension - creating a UIFont with a specified weight.

  • UIImage+Extension - creat a UIImage with a border of a specified width and color.

  • UILabel+Extension - creating a UILabel with a specified line height.

  • UINavigationController+Extension - convenience methods for setting a navigation bar to be transparent, to have a certain tint color, or a background color.

  • UITableView+Extension - conveninece method to scroll to the top of a UITableView.

  • URL+Extension - function for getting the image data from a specified URL.

You might also like...
BFKit is a collection of useful classes and categories to develop Apps faster.

Swift Version • What does it do • Language support • Requirements • Communication • Contributing • Installing and Usage • Documentation • Changelog •

SharkUtils is a collection of Swift extensions, handy methods and syntactical sugar that we use within our iOS projects at Gymshark.

SharkUtils is a collection of Swift extensions, handy methods and syntactical sugar that we use within our iOS projects at Gymshark.

Easier sharing of structured data between iOS applications and share extensions
Easier sharing of structured data between iOS applications and share extensions

XExtensionItem XExtensionItem is a tiny library allowing for easier sharing of structured data between iOS applications and share extensions. It is ta

Message passing between iOS apps and extensions.
Message passing between iOS apps and extensions.

MMWormhole MMWormhole creates a bridge between an iOS or OS X extension and its containing application. The wormhole is meant to be used to pass data

An open source Instapaper clone that features apps and extensions that use native UI Components for Mac and iOS.
An open source Instapaper clone that features apps and extensions that use native UI Components for Mac and iOS.

TODO: Screenshot outdated Hipstapaper - iOS and Mac Reading List App A macOS, iOS, and iPadOS app written 100% in SwiftUI. Hipstapaper is an app that

Common iOS extensions

NVExtensions Common iOS extensions. Requirement iOS 13.0+ Swift 5.5+ Dependencies SwiftDate Installation Swift Package Manager The Swift Package Manag

Extensions giving Swift's Codable API type inference super powers 🦸‍♂️🦹‍♀️
Extensions giving Swift's Codable API type inference super powers 🦸‍♂️🦹‍♀️

Welcome to Codextended — a suite of extensions that aims to make Swift’s Codable API easier to use by giving it type inference-powered capabilities an

A handy collection of more than 500 native Swift extensions to boost your productivity.

SwifterSwift is a collection of over 500 native Swift extensions, with handy methods, syntactic sugar, and performance improvements for wide range of

🌤 Swift Combine extensions for asynchronous CloudKit record processing

Swift Combine extensions for asynchronous CloudKit record processing. Designed for simplicity.

Owner
Nick Arner
Interested in emerging technologies (AR, mobile machine learning, sensors, HCI). Available for iOS and macOS development: www.nickarner.com
Nick Arner
Useful Swift code samples, extensions, functionalities and scripts to cherry-pick and use in your projects

SwiftyPick ?? ?? Useful Swift code samples, extensions, functionalities and scripts to cherry-pick and use in your projects. Purpose The idea behind t

Manu Herrera 19 May 12, 2022
Useful extensions for my Swift code

UIViewController extensions presentAlert(withTitle title: String, message : String) presentAlertDialog(withTitle title: String, message : String, acti

Bogdan Grafonsky 1 Oct 17, 2021
Useful functions and extensions for sorting in Swift

SwiftSortUtils Motivation This library takes a shot at making comparing and sorting in Swift more pleasant. It also allows you to reuse your old NSSor

Daniel Strittmatter 60 Sep 9, 2022
Extendy - A set of useful string extensions.

Extendy A set of useful string extensions. Requirements iOS 11.0+ Swift 5+ Installation CocoaPods Extendy is available through CocoaPods. To install i

Anton Novichenko 3 Sep 23, 2021
Helpful extensions for iOS app development 🚀

ExtensionKit includes many extensions, from getting the user location with a deterministic Combine API to a shimmer loading animation, to keyboard notification updates, bottom sheet and much much more. Check out the docs below or install the library with SPM to try it out.

Gary Tokman 110 Oct 31, 2022
A Swift package for rapid development using a collection of micro utility extensions for Standard Library, Foundation, and other native frameworks.

ZamzamKit ZamzamKit is a Swift package for rapid development using a collection of micro utility extensions for Standard Library, Foundation, and othe

Zamzam Inc. 261 Dec 15, 2022
Collection of native Swift extensions to boost your development. Support tvOS and watchOS.

SparrowKit Collection of native Swift extensions to boost your development. Support iOS, tvOS and watchOS. If you like the project, don't forget to pu

Ivan Vorobei 119 Dec 20, 2022
Collection of Swift-extensions to boost development process.

SwiftBoost Collection of Swift-extensions to boost development process. Community Installation Ready to use on iOS 13+, tvOS 13+, watchOS 6.0+. Swift

Sparrow Code 119 Dec 20, 2022
A Collection of useful Swift property wrappers to make coding easier

Swift Property Wrappers A Collection of useful Swift property wrappers to make c

Gordan Glavaš 2 Jan 28, 2022
A collection of useful result builders for Swift and Foundation value types

Swift Builders A collection of useful result builders for Swift and Foundation value types. Motivation Arrays, dictionaries, and other collection-base

David Roman 3 Oct 14, 2022