All Projects → uacaps → NumberTicker

uacaps / NumberTicker

Licence: BSD-3-Clause license
Robinhood-like Rotating Number View | SwiftUI

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to NumberTicker

Observable
A generic ObservableObject for every property!
Stars: ✭ 41 (+20.59%)
Mutual labels:  swiftui
DarkModeSwitcher
Simple app for overriding light mode per app on macOS (demo for a blog post)
Stars: ✭ 37 (+8.82%)
Mutual labels:  swiftui
LineChartView
An interactive line chart written in SwiftUI with many customizations (colors, line size, dots, haptic feedbacks). Support value and time series.
Stars: ✭ 59 (+73.53%)
Mutual labels:  swiftui
Simple-Login-iOS
iOS client for SimpleLogin
Stars: ✭ 62 (+82.35%)
Mutual labels:  swiftui
ios-sketch-elements
iOS SwiftUI starter kit based on Sketch Elements.
Stars: ✭ 34 (+0%)
Mutual labels:  swiftui
MVVM-in-SwiftUI
MVVM in SwiftUI (WWDC Player)
Stars: ✭ 60 (+76.47%)
Mutual labels:  swiftui
VCore
VCore is a Swift collection containing objects, functions, and extensions that I use for my projects
Stars: ✭ 32 (-5.88%)
Mutual labels:  swiftui
Micro
🏎Fast diffing and type safe SwiftUI style data source for UICollectionView
Stars: ✭ 77 (+126.47%)
Mutual labels:  swiftui
IrregularGradient
Create animated irregular gradients in SwiftUI.
Stars: ✭ 127 (+273.53%)
Mutual labels:  swiftui
RealmTaskTracker
SwiftUI version of the MongoDB Realm iOS tutorial
Stars: ✭ 24 (-29.41%)
Mutual labels:  swiftui
BottomSheet
A sliding Sheet from the bottom of the Screen with 3 States build with SwiftUI.
Stars: ✭ 597 (+1655.88%)
Mutual labels:  swiftui
OMJoystick
This is the JoyStick UI library for SwiftUI.
Stars: ✭ 15 (-55.88%)
Mutual labels:  swiftui
stinsen
Coordinators in SwiftUI. Simple, powerful and elegant.
Stars: ✭ 563 (+1555.88%)
Mutual labels:  swiftui
Watch-The-Matrix
A watchOS client for Matrix chat
Stars: ✭ 27 (-20.59%)
Mutual labels:  swiftui
app
💥 a modern xkcd iOS client
Stars: ✭ 31 (-8.82%)
Mutual labels:  swiftui
StackNavigationView
A SwiftUI component for macOS that makes complex view hierarchies possible
Stars: ✭ 96 (+182.35%)
Mutual labels:  swiftui
Bursts
A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI
Stars: ✭ 11 (-67.65%)
Mutual labels:  swiftui
AppClipCodeGenerator
App Clip Code Generator macOS App built with SwiftUI
Stars: ✭ 75 (+120.59%)
Mutual labels:  swiftui
LongWeekend-iOS
🏖📱 LongWeekend is iOS Application that supports checking long weekends when taking a vacation in Japan
Stars: ✭ 19 (-44.12%)
Mutual labels:  swiftui
ECommerceAppSwiftUI
ECommerce App in SwiftUI
Stars: ✭ 37 (+8.82%)
Mutual labels:  swiftui

NumberTicker

A rotating number component inspired by Robinhood written in SwiftUI.

alt text

Requirements

Operating System Version
iOS 13+
tvOS 13+
watchOS 6+
macOS 10.15+

Installation

NumberTicker is available via Swift Package Manager.

Using Xcode, go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/fahlout/NumberTicker

Usage

To get started all you need to do is initialize NumberTicker with a number.

NumberTicker(number: 1234.56)

There are several ways to customize NumberTicker to work best for your app.

1. Font

// The font as well as the padding described in a later step contribute to the sizing of the NumberTicker.
// Default: .system(size: 30, weight: .bold, design: .rounded)
NumberTicker(..., font: .system(size: 30, weight: .bold, design: .rounded), ...)

2. Decimal Places

// This will effect how many decimal places will be shown in the NumberTicker.
// Default: 0
NumberTicker(..., decimalPlaces: 5, ...)

3. Number Style

// This changes how the number is formatted based on a NumberFormatter.Style.
// Default: .none
NumberTicker(..., numberStyle: .currency, ...)

4. Locale

// This changes how the number is styled based on the provided Locale.
// Default: .autoupdatingCurrent
NumberTicker(..., locale: Locale("de_DE"), ...)

5. Prefix/Suffix

// This adds a prefix and/or suffix to the NumberTicker. This can be any String.
// Default: ""
NumberTicker(..., prefix: "~", suffix: "Quarters", ...)

6. Initial Animation

// This changes whether or not it will animate to the number when it initially appears on screen.
// Default: false
NumberTicker(..., shouldAnimateToInitialNumber: true, ...)

7. Extra Padding

// This changes how much extra padding the NumberTicker should have on the top and bottom. This also affects how the fade will look descriped in a later step.
// Default: 0
NumberTicker(..., topBottomPadding: 5, ...)

8. Fade Color

// This changes the color of the top and bottom fade. The fade will only show if the color is set and topBottomPadding is greater than 0. To make the fade blend into the background of the view it's displayed on set this color to the background color of the view it's displayed on.
// Default: nil
NumberTicker(..., fadeColor: .red, ...)

Author

👨‍💻 Niklas Fahl

License

NumberTicker is available under the University of Alabama License. See the LICENSE file for more info.

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].