A multi-platform SwiftUI component for basic number input.
Available as an open source library to be incorporated in SwiftUI apps.
SwiftNumberPad is part of the OpenAlloc family of open source Swift software tools.
- Support for both integer and floating point types
- Presently targeting .macOS(.v13), .iOS(.v16), .watchOS(.v9)
- No external dependencies!
Please submit pull requests if you'd like to tackle any of these. Thanks!
- Examples in this README, for both integer and float, with screenshots
- Usage documentation in this README
- SwiftUI Preview not reliably working on macOS
- See if earlier versions of platforms can be supported
- Support for negative values
- Support for Decimal input
- SwiftSideways - multi-platform SwiftUI component for the horizontal scrolling of tabular data in compact areas
- SwiftDetailer - multi-platform SwiftUI component for editing fielded data
- SwiftDetailerMenu - optional menu support for SwiftDetailer
- SwiftCompactor - formatters for the concise display of Numbers, Currency, and Time Intervals
- SwiftModifiedDietz - A tool for calculating portfolio performance using the Modified Dietz method
- SwiftNiceScale - generate 'nice' numbers for label ticks over a range, such as for y-axis on a chart
- SwiftRegressor - a linear regression tool that’s flexible and easy to use
- SwiftSeriesResampler - transform a series of coordinate values into a new series with uniform intervals
- SwiftSimpleTree - a nested data structure that’s flexible and easy to use
And open source apps using this library (by the same author):
-
Gym Routine Tracker - minimalist workout tracker, for the Apple Watch, iPhone, and iPad
-
Daily Calorie Tracker - minimalist calorie tracker, for the Apple Watch, iPhone, and iPad
-
FlowAllocator - portfolio rebalancing tool for macOS
-
FlowWorth - a new portfolio performance and valuation tracking tool for macOS
Copyright 2023 OpenAlloc LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Contributions are welcome. You are encouraged to submit pull requests to fix bugs, improve documentation, or offer new features.
The pull request need not be a production-ready feature or fix. It can be a draft of proposed changes, or simply a test to show that expected behavior is buggy. Discussion on the pull request can proceed from there.