A small experimentation with HealthKit. Solis is a single screen app that displays the user's weight with a chart, their water in take and total steps as text below.
Solis is single screen app that displays the user's weight, water in-take, and total step count. It utilizes SwiftUI and HealthKit for its main features.
Solis/
Solis/
Info
Solis
SolisApp
Modules/
Home/
HomeView
HealthKit/
HealthFetch
HealthHelper
HealthManager
Assets/
Preview Content/
Assets
SIzes
The main entry point of the application, setting up the app structure and initial view.
The main view of the application, displaying health data including weight trends, step count, and water intake.
The app uses HealthKit to fetch the following types of data:
Upon first launch, the app will request authorization to access HealthKit data. Once granted, it will display the user's health snapshot including weight trends, daily step count, and water intake.
The app uses custom font modifiers for consistent typography across the UI. These can be adjusted in the HomeView.swift
file.
Contributions to Solis are welcome. Please feel free to submit a Pull Request.
MIT License
Copyright (c) 2024 Rayan Waked
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.