Giter VIP home page Giter VIP logo

tinyswift's Introduction

TinySwift

CI Status codecov Version License Platform

Requirements

iOS 12+, tvOS 12+, watchOS 4+

Installation

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

pod "TinySwift"

Usage

TinySwift is an extension pack for Swift classes and structs.

It contains the following functions and properties:

AVAsset

  • var thumbnail iOS, tvOS

Bool

  • init(_: Integer) iOS, tvOS, watchOS
  • static var random iOS, tvOS, watchOS
  • func toggle() iOS, tvOS, watchOS

CGAffineTransform

  • var rotationAngle iOS, tvOS, watchOS
  • var scaleX iOS, tvOS, watchOS
  • var scaleY iOS, tvOS, watchOS

Collection

  • var random iOS, tvOS, watchOS

Array

  • subscript(safe:) iOS, tvOS, watchOS
  • var shuffled iOS, tvOS
  • func remove(element:) iOS, tvOS, watchOS
  • func shuffle() iOS, tvOS

RandomAccessCollection

  • var appearances iOS, tvOS, watchOS
  • var arithmeticMean iOS, tvOS, watchOS
  • var areAllElementsEqual iOS, tvOS, watchOS
  • var geometricMean iOS, tvOS, watchOS
  • var median iOS, tvOS, watchOS
  • var mode iOS, tvOS, watchOS
  • var set iOS, tvOS, watchOS
  • var standardDeviation iOS, tvOS, watchOS
  • var sum iOS, tvOS, watchOS
  • var variance iOS, tvOS, watchOS

Data

  • init(hexadecimalString:) iOS, tvOS, watchOS
  • var hexadecimalString iOS, tvOS, watchOS
  • func qrCode(correctionLevel:) iOS, tvOS

Date

  • var day iOS, tvOS, watchOS
  • var firstOfMonth iOS, tvOS, watchOS
  • var firstOfYear iOS, tvOS, watchOS
  • var lastOfMonth iOS, tvOS, watchOS
  • var lastOfYear iOS, tvOS, watchOS
  • var month iOS, tvOS, watchOS
  • var nextDay iOS, tvOS, watchOS
  • var previousDay iOS, tvOS, watchOS
  • var weekday iOS, tvOS, watchOS
  • var year iOS, tvOS, watchOS

FloatingPoint

  • var additiveInverse iOS, tvOS, watchOS
  • var degreesToRadians iOS, tvOS, watchOS
  • var multiplicativeInverse iOS, tvOS, watchOS
  • var radiansToDegrees iOS, tvOS, watchOS

Integer

  • var additiveInverse iOS, tvOS, watchOS
  • var days iOS, tvOS, watchOS
  • var degreesToRadians iOS, tvOS, watchOS
  • var factorial iOS, tvOS, watchOS
  • var hours iOS, tvOS, watchOS
  • var isEven iOS, tvOS, watchOS
  • var isOdd iOS, tvOS, watchOS
  • var isPrime iOS, tvOS, watchOS
  • var minutes iOS, tvOS, watchOS
  • var multiplicativeInverse iOS, tvOS, watchOS
  • var radiansToDegrees iOS, tvOS, watchOS
  • var seconds iOS, tvOS, watchOS

Int

  • init(random:) iOS, tvOS, watchOS
  • var random iOS, tvOS, watchOS
  • func times(execute:) iOS, tvOS, watchOS

NSAttributedString

  • func formatted(substring:font:) iOS, tvOS, watchOS

String

  • init(path:) iOS, tvOS, watchOS
  • init(random:length:nonRepeating:) iOS, tvOS, watchOS
  • var camelCased iOS, tvOS, watchOS
  • var dataFromHexadecimalString iOS, tvOS, watchOS
  • var emptyIfNil iOS, tvOS, watchOS
  • var initials iOS, tvOS, watchOS
  • var isEmailAddress iOS, tvOS, watchOS
  • var lines iOS, tvOS, watchOS
  • var localized iOS, tvOS, watchOS
  • var nilIfEmpty iOS, tvOS, watchOS
  • var nonEmptyLines iOS, tvOS, watchOS
  • var trimmed iOS, tvOS, watchOS
  • var upperCamelCased iOS, tvOS, watchOS
  • func formatted(substring:font:) iOS, tvOS, watchOS
  • func occurrences(of:) iOS, tvOS, watchOS
  • func qrCode(correctionLevel:encoding:) iOS, tvOS

TimeInterval

  • func time(with:) iOS, tvOS, watchOS

UIColor

  • init(hex:alpha:) iOS, tvOS, watchOS
  • var hex iOS, tvOS, watchOS

UIDevice

  • var device iOS, tvOS
  • var deviceCode iOS, tvOS
  • var diskSize iOS, tvOS
  • var freeDiskSpace iOS, tvOS

UIImage

  • init(color:size:) iOS, tvOS, watchOS
  • var grayscale iOS, tvOS
  • var normalizedImage iOS, tvOS, watchOS
  • var png iOS, tvOS, watchOS
  • var square iOS, tvOS, watchOS
  • var thumbnail iOS, tvOS, watchOS
  • static func get(from:completion:) iOS, tvOS, watchOS
  • func border(width:color:) iOS, tvOS, watchOS
  • func color(at:) iOS, tvOS, watchOS
  • func crop(to:) iOS, tvOS, watchOS
  • func heic(quality:) iOS, tvOS
  • func jpeg(quality:) iOS, tvOS, watchOS
  • func resize(to:) iOS, tvOS, watchOS

UIImageView

  • func setImage(from:placeholder:completion:) iOS, tvOS
  • func sharpenForQRCode() iOS, tvOS

UIScreen

  • var isLowResolution tvOS
  • var isSmallScreen iOS
  • var size iOS

UITableViewCell

  • func hideSeparator() iOS

UIView

  • var viewFromNib iOS, tvOS

UIViewController

  • func presentAlertController(withTitle:message:completion:handler:) iOS, tvOS

URL

  • func qrCode(correctionLevel:encoding:) iOS, tvOS

WKInterfaceDevice

  • var device watchOS
  • var isSmaller watchOS
  • var isLarger watchOS

Author

Piotr Sochalewski, sochalewski.github.io

License

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

tinyswift's People

Contributors

markperkins avatar sochalewski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tinyswift's Issues

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.