misc Swift utils
- Swift 99.8%
- Makefile 0.2%
| .swiftpm/xcode | ||
| Sources/SwiftSys | ||
| Tests/SwiftSysTests | ||
| .gitignore | ||
| LICENSE | ||
| Makefile | ||
| Package.swift | ||
| README.md | ||
SwiftSys
A hodgepodge of Swift and SwiftUI code that I share or theoretically could among my apps (Talk Dim Sum on the App Store and Fedicat on Testflight)
- displaying and speaking Chinese words (Cantonese, Mandarin, and Mandarin with simplified characters)
- map display and info links of places collected by region and country (used for restaurants in Talk Dim Sum but could be anything)
- Date extension for convenient formatting
- String extensions for copy to pasteboard and URL creation
- A Rumble class for convenience vibrations (UIFeedback).
- LinkLabel wrapper for SwiftUI Link (clickable urls)
- LanguageChooser based on the aforementioned language codes
- FutureDatePicker that picks dates and times starting from now
- A Site class encapsulating URLs with support for markdown and various sites
- Icon enum for SF Symbols
- Label, button, and toggle wrappers that take Icon and automatically localize
- Button wrappers automatically rumble
- Text-to-speech
- misc stuff
Formatted and linted with swift-format.
Should follow Swift API guidelines and DocC documentation.