{"id":15561328,"url":"https://github.com/sochalewski/tinyswift","last_synced_at":"2025-06-20T12:07:08.387Z","repository":{"id":56924309,"uuid":"69129692","full_name":"sochalewski/TinySwift","owner":"sochalewski","description":"TinySwift is an extension pack for Swift classes and structs","archived":false,"fork":false,"pushed_at":"2023-10-24T09:51:04.000Z","size":446,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T10:00:27.760Z","etag":null,"topics":["extension","ios","swift","swift4","swift5","tvos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sochalewski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-24T21:56:04.000Z","updated_at":"2024-04-05T23:21:40.000Z","dependencies_parsed_at":"2024-10-02T16:07:38.976Z","dependency_job_id":"bfdd1f8d-3649-48e0-967e-29e27d361404","html_url":"https://github.com/sochalewski/TinySwift","commit_stats":{"total_commits":140,"total_committers":4,"mean_commits":35.0,"dds":0.05714285714285716,"last_synced_commit":"2a529b5c193ec9471e6b5c1ef2897720c72839a8"},"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sochalewski%2FTinySwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sochalewski%2FTinySwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sochalewski%2FTinySwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sochalewski%2FTinySwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sochalewski","download_url":"https://codeload.github.com/sochalewski/TinySwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528683,"owners_count":21445511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","ios","swift","swift4","swift5","tvos","watchos"],"created_at":"2024-10-02T16:07:27.417Z","updated_at":"2025-04-23T22:41:27.908Z","avatar_url":"https://github.com/sochalewski.png","language":"Swift","readme":"# TinySwift\n\n[![CI Status](https://github.com/sochalewski/TinySwift/actions/workflows/actions.yml/badge.svg)](https://github.com/sochalewski/TinySwift/actions)\n[![codecov](https://codecov.io/gh/sochalewski/TinySwift/branch/master/graph/badge.svg)](https://codecov.io/gh/sochalewski/TinySwift)\n[![Version](https://img.shields.io/cocoapods/v/TinySwift.svg?style=flat)](http://cocoapods.org/pods/TinySwift)\n[![License](https://img.shields.io/cocoapods/l/TinySwift.svg?style=flat)](http://cocoapods.org/pods/TinySwift)\n[![Platform](https://img.shields.io/cocoapods/p/TinySwift.svg?style=flat)](http://cocoapods.org/pods/TinySwift)\n\n## Requirements\n\niOS 12+, tvOS 12+, watchOS 4+\n\n## Installation\n\nTinySwift is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"TinySwift\"\n```\n\n## Usage\n\nTinySwift is an extension pack for Swift classes and structs.\n\nIt contains the following functions and properties:\n\n### AVAsset\n\n* `var thumbnail` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### Bool\n\n* `init(_: Integer)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `static var random` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func toggle()` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### CGAffineTransform\n\n* `var rotationAngle` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var scaleX` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var scaleY` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### Collection\n\n* `var random` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n#### Array\n\n* `subscript(safe:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var shuffled` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `func remove(element:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func shuffle()` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n#### RandomAccessCollection\n\n* `var appearances` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var arithmeticMean` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var areAllElementsEqual` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var geometricMean` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var median` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var mode` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var set` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var standardDeviation` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var sum` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var variance` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### Data\n\n* `init(hexadecimalString:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var hexadecimalString` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func qrCode(correctionLevel:)` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### Date\n\n* `var day` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var firstOfMonth` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var firstOfYear` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var lastOfMonth` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var lastOfYear` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var month` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var nextDay` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var previousDay` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var weekday` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var year` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### FloatingPoint\n\n* `var additiveInverse` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var degreesToRadians` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var multiplicativeInverse` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var radiansToDegrees` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### Integer\n\n* `var additiveInverse` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var days` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var degreesToRadians` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var factorial` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var hours` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var isEven` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var isOdd` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var isPrime` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var minutes` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var multiplicativeInverse` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var radiansToDegrees` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var seconds` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n#### Int\n\n* `init(random:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var random` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func times(execute:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### NSAttributedString\n\n* `func formatted(substring:font:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### String\n\n* `init(path:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `init(random:length:nonRepeating:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var camelCased` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var dataFromHexadecimalString` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var emptyIfNil` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var initials` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var isEmailAddress` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var lines` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var localized` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var nilIfEmpty` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var nonEmptyLines` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var trimmed` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var upperCamelCased` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func formatted(substring:font:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func occurrences(of:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func qrCode(correctionLevel:encoding:)` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### TimeInterval\n\n* `func time(with:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### UIColor\n\n* `init(hex:alpha:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var hex` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### UIDevice\n\n* `var device` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `var deviceCode` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `var diskSize` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `var freeDiskSpace` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### UIImage\n\n* `init(color:size:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var grayscale` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `var normalizedImage` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var png` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var square` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `var thumbnail` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `static func get(from:completion:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func border(width:color:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func color(at:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func crop(to:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func heic(quality:)` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `func jpeg(quality:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n* `func resize(to:)` \u003csup\u003eiOS, tvOS, watchOS\u003c/sup\u003e\n\n### UIImageView\n\n* `func setImage(from:placeholder:completion:)` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n* `func sharpenForQRCode()` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### UIScreen\n\n* `var isLowResolution` \u003csup\u003etvOS\u003c/sup\u003e\n* `var isSmallScreen` \u003csup\u003eiOS\u003c/sup\u003e\n* `var size` \u003csup\u003eiOS\u003c/sup\u003e\n\n### UITableViewCell\n\n* `func hideSeparator()` \u003csup\u003eiOS\u003c/sup\u003e\n\n### UIView\n\n* `var viewFromNib` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### UIViewController\n\n* `func presentAlertController(withTitle:message:completion:handler:)` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### URL\n\n* `func qrCode(correctionLevel:encoding:)` \u003csup\u003eiOS, tvOS\u003c/sup\u003e\n\n### WKInterfaceDevice\n\n* `var device` \u003csup\u003ewatchOS\u003c/sup\u003e\n* `var isSmaller` \u003csup\u003ewatchOS\u003c/sup\u003e\n* `var isLarger` \u003csup\u003ewatchOS\u003c/sup\u003e\n\n## Author\n\nPiotr Sochalewski, \u003ca href=\"http://sochalewski.github.io/\"\u003esochalewski.github.io\u003c/a\u003e\n\n## License\n\nTinySwift is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsochalewski%2Ftinyswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsochalewski%2Ftinyswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsochalewski%2Ftinyswift/lists"}