Popsicle alternatives and similar libraries
Based on the "Utility" category.
Alternatively, view Popsicle alternatives based on common mentions on social networks and blogs.
-
SwifterSwift
A handy collection of more than 500 native Swift extensions to boost your productivity. -
SwiftGen-Storyboard
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
R.swift
Strong typed, autocompleted resources like images, fonts and segues in Swift projects -
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
swift-protobuf
Plugin and runtime library for using protobuf with Swift -
Dollar
A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript -
DifferenceKit
💻 A fast and flexible O(n) difference algorithm framework for Swift collection. -
EZSwiftExtensions
:smirk: How Swift standard types and classes were supposed to work. -
Result
Swift type modelling the success/failure of arbitrary operations. -
DeepDiff
🦀Amazingly incredible extraordinary lightning fast diffing in Swift -
Device
Light weight tool for detecting the current device and screen size written in swift. -
SwiftLinkPreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images. -
WhatsNew
Showcase new features after an app update similar to Pages, Numbers and Keynote. -
Codextended
Extensions giving Swift's Codable API type inference super powers 🦸♂️🦹♀️ -
Playbook
📘A library for isolated developing UI components and automatically taking snapshots of them. -
SwiftyJSONAccelerator
macOS app to generate Swift 5 code for models from JSON (with Codeable) -
ReadabilityKit
Preview extractor for news, articles and full-texts in Swift -
Compass
:earth_africa: Compass helps you setup a central navigation system for your application -
ObjectiveKit
Swift-friendly API for a set of powerful Objective C runtime functions. -
Bow
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift -
Pythonic.swift
Pythonic tool-belt for Swift – a Swift implementation of selected parts of Python standard library. -
BetterSafariView
A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI. -
SwiftPlantUML
A command-line tool and Swift Package for generating class diagrams powered by PlantUML
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Popsicle or a related project?
README
THIS PROJECT IS NO LONGER MAINTAINED.
Popsicle is a Swift framework for creating and managing interpolations of different value types with built-in UIKit support.
Installation
Carthage
github "DavdRoman/Popsicle"
CocoaPods
pod 'Popsicle'
Manual
Drag and copy all files in the [Popsicle](Popsicle) folder into your project.
At a glance
Interpolating UIView (or any other NSObject) values
First, you need an Interpolator
instance:
let interpolator = Interpolator()
Next, you need to add some Interpolation<T>
instances to your interpolator. In the example below, we are going to interpolate the alpha value of a UIView for times between 0 and 150:
let interpolation = Interpolation(yourView, alpha)
interpolation[0] = 0
interpolation[150] = 1
self.interpolator.addInterpolation(interpolation)
Note alpha
is a built-in KeyPath<T, U>
constant. Popsicle offers a nice set of [UIKit-related KeyPaths](Popsicle/KeyPath.swift) ready to be used. You may also use a completely custom key path.
You can also modify the easing function used at a given time:
interpolation.setEasingFunction(EasingFunctionEaseOutQuad, forTime: 0)
There's a bunch of [built-in easing functions](Popsicle/EasingFunction.swift) to choose from.
Finally, just make your interpolator
vary its time
depending on whatever you want. For example, the content offset of a UITableView
:
func scrollViewDidScroll(scrollView: UIScrollView) {
interpolator.time = Double(scrollView.contentOffset.y)
}
Interpolating custom values
You can declare a value type as interpolable by making it conform to the Interpolable
protocol.
As an example, check out how CGPoint
conforms to Interpolable
:
extension CGSize: Interpolable {
public static func interpolate(from fromValue: CGSize, to toValue: CGSize, withProgress progress: Progress) -> CGSize {
let width = CGFloat.interpolate(from: fromValue.width, to: toValue.width, withProgress: progress)
let height = CGFloat.interpolate(from: fromValue.height, to: toValue.height, withProgress: progress)
return CGSizeMake(width, height)
}
public static func objectify(value: CGSize) -> AnyObject {
return NSValue(CGSize: value)
}
}
License
Popsicle is available under the MIT license.
*Note that all licence references and agreements mentioned in the Popsicle README section above
are relevant to that project's source code only.