Provides basic and foundational utilities for iOS applications.
This repository provides basic utilities and APIs for an application running on Apple’s platforms’.
This repository also includes some useful resources for developing on Apple’s platforms such asclass
vs struct
, Automatic Reference Counting, and more. (see HelpfulResources.md))
Developed by Kelvin Kosbab
kelvin.kosbab@kozinga.net
https://kelvinkosbab.github.io/BasicSwiftUtilities
This repository contains the following Swift packages (also supports exporting of dynamic
frameworks via BasicSwiftUtilitesFramework.xcproject
):
Core
CoreHealth
CoreStorage
CoreUI
RunMode
For detailed information of these packages / frameworks see below.
Note: This pacakge is designed such that its only dependency is Apple’s various fundamental frameworks.
Platform Support:
Provides basic utilities for an app running on Apple platforms.
For a full breakdown and details see Core
‘s Documentation.
Provides utilties for accessing Apple’s HealthKit
APIs. These APIs wrap Apple’s APIs to provide
useful ways to query data safely via units that each health biometric supports.
For a full breakdown and details see CoreHealth
‘s Documentation.
Provides utilities for persistently storing data. This pacakge includes utilities for Apple’sCoreData
as well as a custom SQLite
implementation, CodableStore
andDiskBackedJSONCodableStore
.
For a full breakdown and details see CoreStorage
‘s Documentation.
Provides UIKit
and SwiftUI
helpers, components, and utilities.
UIView
and UIViewController
utilitiesFor a full breakdown and details see CoreUI
‘s Documentation.
Determines the active run mode off the current process.
Possibilities include:
To determine the current process’s RunMode
:
let activeRunMode = RunMode.getActive()
For a full breakdown and details see RunMode
‘s Documentation.
HKAnchoredObjectQuery
queries with type-safe and unit-safe implementation.[Toasts] Add flexibility so developers can render any View
as the toast content without
enforcing a String
title.
[Toasts] Add ability to customize appearance with app-specific font, not just the default
system fonts.
[Toasts] Apply a minimum capsule size if no content is present.
[Accessibility] Add utilities for accessibility.
See LICENSE.