- July 26, 2025
- Mins Read
Number Pad inspired by Square. This module is based on LEAmountInputView.
$ pod try NumPad
use_frameworks!
pod “NumPad”
To install with Carthage, simply add this in your Cartfile
:
github “efremidze/NumPad”
NumPad.swift
in your project.Add NumPad
to your view.
import NumPad
let numPad = NumPad(frame: CGRect(x: 0, y: 0, width: 320, height: 600))
numPad.dataSource = self
numPad.delegate = self
addSubview(numPad)
Use the DefaultNumPad
for a preconfigured dataSource and delegate.
// number of rows
func numberOfRowsInNumPad(numPad: NumPad) -> Int
// number of columns for row
func numPad(numPad: NumPad, numberOfColumnsInRow row: Row) -> Int
// item for position
func numPad(numPad: NumPad, itemAtPosition position: Position) -> Item
Delegate
// handle item tap
func numPad(numPad: NumPad, itemTapped item: Item, atPosition position: Position)
// item size for position
func numPad(numPad: NumPad, sizeForItemAtPosition position: Position) -> CGSize
NavigationKit is a lightweight library which makes SwiftUI navigation super easy to use. 💻 Installation 📦 Swift Package Manager Using Swift Package Manager, add ...
An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation. NavigationStack Installation ...
With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...