TStest
com.ts.testapp
TStest is an iOS application that calculates the device's tilt, displays the history in a graph, and offers various additional features. This app is built using SwiftUI and can be distributed through TrollStore.
- Calculates tilt values (Pitch, Roll, Yaw)
- Graphs the tilt history
- Saves and loads history data
- Sends notifications when a specific tilt value is exceeded
- Supports dark mode
- Highlights data points on the graph
- iOS 14.0 or later
- Xcode 12 or later
- SwiftUI
- CoreMotion framework
-
Clone this repository:
git clone https://github.com/yourusername/TStest.git
-
Open the project in Xcode:
open TStest.xcodeproj
-
Build and run the project:
- Select a build target (iOS Simulator or a real device).
- Press
Cmd + Rto build and run the project.
- Build the project in Xcode to generate the .ipa file.
- Install the generated .ipa file using TrollStore.
- Refer to the TrollStore installation guide for instructions on installing the .ipa file.
- Launch the app.
- Press the "Start" button to begin measuring the tilt.
- The tilt values (Pitch, Roll, Yaw) will be displayed in real-time.
- View the tilt history through the graph.
- A notification will be displayed when a specific tilt value is exceeded.
- Press the "Stop" button to stop measuring the tilt.
- Toggle dark mode in the settings.
MotionManager: A class that uses CoreMotion to measure the device's tilt and manage the data.
ContentView: The main view that displays tilt values and the graph, and provides the user interface.LineGraph: A custom view that graphs the tilt history.
- The entry point of the app, which sets
ContentViewas the initial screen.
- A UIKit view controller that embeds the SwiftUI view.
This project is licensed under the MIT License. See the LICENSE file for more information.