TempConverter is a SwiftUI application that allows users to convert temperatures between different units, including Kelvin, Celsius, Fahrenheit, Rankine, and Reaumur. The application provides a user-friendly interface, enabling users to enter a temperature in one unit and see the converted value in another unit instantly.
- Unit Conversion: Convert temperatures between multiple units:
- Kelvin
- Celsius
- Fahrenheit
- Rankine
- Reaumur
- Responsive Design: Beautifully designed UI with gradient backgrounds and responsive layout.
- Error Handling: Displays an alert message if a temperature value below absolute zero (0 Kelvin) is entered.
- Unit Selection: Easy selection of temperature units using a modal interface.
To run the TempConverter application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/kn00pers/TempConverter.git
-
Open the project in Xcode:
open TempConverter.xcodeproj
-
Build and run the application on a simulator or a physical device.
- Enter a temperature value in the input field.
- Select the unit of the entered temperature.
- The converted value will automatically display in the corresponding output field.
- Note: Temperatures below 0 Kelvin are not valid and will trigger an alert indicating that this value is impossible to achieve.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.