All Projects → varabeis → Spperspective

varabeis / Spperspective

Licence: mit
Widgets iOS 14 animation with 3D and dynamic shadow. Customisable transform and duration.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Spperspective

Ios Widgets
Collection of iOS Widgets
Stars: ✭ 219 (+72.44%)
Mutual labels:  widget, widgets
widgets
🚀 Dojo - UI widgets.
Stars: ✭ 82 (-35.43%)
Mutual labels:  widget, widgets
Graphics32 RBC
Graphics Extension that extend of Graphics32 Library for Delphi XE6 and up (and maybe Lazarus) by Uğur PARLAYAN
Stars: ✭ 32 (-74.8%)
Mutual labels:  widget, widgets
Touch Bar Istats
Show CPU/GPU/MEM temperature on Touch Bar with BetterTouchTool!
Stars: ✭ 141 (+11.02%)
Mutual labels:  widget, widgets
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (-55.91%)
Mutual labels:  widget, widgets
develop
A simple tool to help elementary OS developers to develop their own apps and widgets.
Stars: ✭ 38 (-70.08%)
Mutual labels:  widget, widgets
responsible-ai-toolbox
This project provides responsible AI user interfaces for Fairlearn, interpret-community, and Error Analysis, as well as foundational building blocks that they rely on.
Stars: ✭ 615 (+384.25%)
Mutual labels:  widget, widgets
cumulocity-app-builder
The Application Builder for Cumulocity provides a simple, coding-free way to create new applications inside Cumulocity. Application Builder is an open-source tool for you to create web applications in a no-code environment. Created by Global Presales.
Stars: ✭ 18 (-85.83%)
Mutual labels:  widget, widgets
Styled widget
Simplifying widget style in Flutter.
Stars: ✭ 424 (+233.86%)
Mutual labels:  widget, widgets
SPPerspective
Widgets iOS 14 animation with 3D and dynamic shadow. Customisable transform and duration.
Stars: ✭ 271 (+113.39%)
Mutual labels:  widget, widgets
Evntouchiddemo
🆔 iOS fingerprint login process implementation
Stars: ✭ 98 (-22.83%)
Mutual labels:  widget, widgets
Iced
A cross-platform GUI library for Rust, inspired by Elm
Stars: ✭ 12,176 (+9487.4%)
Mutual labels:  widget, widgets
Responsible Ai Widgets
This project provides responsible AI user interfaces for Fairlearn, interpret-community, and Error Analysis, as well as foundational building blocks that they rely on.
Stars: ✭ 107 (-15.75%)
Mutual labels:  widget, widgets
Uppload
📁 JavaScript image uploader and editor, no backend required
Stars: ✭ 1,673 (+1217.32%)
Mutual labels:  widget
Cloudkitgdpr
Framework for allowing users to manage data stored in iCloud
Stars: ✭ 126 (-0.79%)
Mutual labels:  xcode
Django Jsoneditor
Django JSONEditor input widget to provide javascript online JSON Editor
Stars: ✭ 124 (-2.36%)
Mutual labels:  widget
Animate
Declarative UIView animations without nested closures
Stars: ✭ 124 (-2.36%)
Mutual labels:  xcode
Tabtoolbar
A small library for creating tabbed toolbars
Stars: ✭ 129 (+1.57%)
Mutual labels:  widget
Conversable For Scriptable
Conversable is a simple contacts widget for Scriptable.
Stars: ✭ 126 (-0.79%)
Mutual labels:  widget
Croc
Swift emoji string parsing library
Stars: ✭ 124 (-2.36%)
Mutual labels:  xcode

SPPerspective

About

Animatable widgets from iOS 14. Same animation for transform and shadow.

Customisable duration, perspective and shadow also. For visual edit use example app (video preview):

https://ivanvorobei.by/github/spperspective/video-preview

If you like the project, don't forget to put star ★ and follow me on GitHub:

https://github.com/varabeis

Navigate

Requirements

iOS 12+

Installation

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

To integrate SPPerspective into your Xcode project using Xcode 12, specify it in File > Swift Packages > Add Package Dependency...:

https://github.com/varabeis/SPPerspective

CocoaPods:

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate SPPerspective into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'SPPerspective'

Manually

If you prefer not to use any of dependency managers, you can integrate SPPerspective into your project manually. Put Sources/SPPerspective folder in your Xcode project. Make sure to enable Copy items if needed and Create groups.

Quick Start

For apply animation for your view, use this code:

view.applyPerspective(.iOS14WidgetAnimatable)

Use this, if need apply non-animation transform:

view.applyPerspective(.iOS14WidgetStatic)

Customise

Summary

You can customise duration, angle, shadow properties and other. All this customising by configuration file. Configuration can be animatable or static. Above you see .iOS14WidgetAnimatable & .iOS14WidgetStatic, its also configurations wich already have good-usage values same as native widgets.

For get fine configuration, better use example app (video preview). You can in real time see changes in configuration.

https://ivanvorobei.by/github/spperspective/video-preview

Next more details about customise.

Duration

When you init new animation configuration, you can set duration:

let animationConfig = SPPerspectiveAnimationConfig(duration: 16, distortion: 600, angle: 10, vectorStep: 3.14, shadow: nil)
view.applyPerspective(animationConfig)

If need change duration for default config, using this:

let animationConfig = SPPerspectiveConfig.iOS14WidgetAnimatable
animationConfig.animationDuration = 8
view.applyPerspective(animationConfig)

Perspective

Angle is how much the view will rotate. For change it call angle in config:

animationConfig.angle = 10

Also you can customise distortion of perspective. Using this:

animationConfig.distortionPerspective = 600

Both properties allow you configure transform for your view. If you don't know which values shoud using, check use example app (video preview). With sliders you can customize it in detail.

Shadow

Shadow also using configuration. Static and animation configs contains shadow property.

Blur, Opacity & Color

It simple. For change blur, opacity and color call this in configuration.

animationConfig.shadowConfig?.blurRadius = 5
animationConfig.shadowConfig?.opacity = 0.3
animationConfig.shadowConfig?.color = .black

Translations

Translation help customise position of shadow for any state of transform. For example you can want do more vertical translation for show deep transform.

Transform adaptive for each higlight corner. For example startVerticalOffset using when highlight top-center side. For bottom corners available cornerVerticalOffset. For bottom-center side shoud change maximumVerticalOffset . Horizontal trnalation customising by maximumHorizontalOffset.

animationConfig.shadowConfig?.startVerticalOffset = 8
animationConfig.shadowConfig?.cornerVerticalOffset = 18
animationConfig.shadowConfig?.maximumVerticalOffset = 21
animationConfig.shadowConfig?.maximumHorizontalOffset = 12

For get fine result, you shoud use this rule: startVerticalOffset < cornerVerticalOffset < maximumVerticalOffset. Visual transform available in example app (video preview), with it you get fine values.

Other Projects

SPPermissions

Using for request and check state of permissions. Available native UI for request multiple permissions at the same time. Simple integration and usage like 2 lines code.

SPAlert

You can find this alerts in AppStore after feedback or after added song to library in Apple Music. Contains popular Done, Heart presets and many other. Done preset present with draw path animation like original. Also available simple present message without icon. Usage in one line code.

SPDiffable

Simplifies working with animated changes in table and collections. Apple's diffable API required models for each object type. If you want use it in many place, you pass time to implement it and get over duplicates codes. This project help do it elegant with shared models and special cell providers. Support side bar iOS14 and already has native cell providers and views.

SparrowKit

Collection of native Swift extensions to boost your development. Support tvOS and watchOS.

Russian Community

В телеграм-канале Код Воробья пишу о iOS разработке. Видео-туториалы выклыдываю на YouTube:

Tutorials on YouTube

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].