A customized fork of the open-source Loop application for automated insulin delivery, featuring a modern redesigned user interface.
INSU is an iOS application that helps manage Type 1 diabetes through automated insulin delivery. It interfaces with compatible insulin pumps and continuous glucose monitors (CGMs) to provide closed-loop insulin delivery based on real-time glucose data.
- Modern Home Dashboard: Redesigned SwiftUI-based home screen with card-based UI
- Real-time Glucose Monitoring: Live glucose readings with trend indicators
- Automated Insulin Delivery: Closed-loop control with compatible pumps
- Pod Status Tracking: Monitor insulin reservoir levels and pod expiration
- Bolus Management: Easy bolus entry with recommendations
- Multiple CGM Support: Compatible with Dexcom G6/G7, Libre, and other sensors
- Multiple Pump Support: Compatible with Omnipod and Medtronic pumps
- iOS 16.2 or later
- Xcode 15.0 or later
- Swift 5.5 or later
- Compatible insulin pump (Omnipod or Medtronic)
- Compatible CGM (Dexcom G6/G7, Libre, etc.)
INSU/
├── Loop-260117-1851/
│ └── LoopWorkspace/ # Main Xcode workspace
│ ├── Loop/ # Main iOS app
│ │ ├── Loop/ # App target
│ │ └── LoopUI/ # UI framework
│ │ └── Views/
│ │ └── HomeCards/ # New redesigned home UI
│ ├── LoopKit/ # Core algorithms (DO NOT MODIFY)
│ ├── LoopOnboarding/ # Onboarding flows
│ ├── RileyLinkKit/ # RileyLink communication
│ ├── OmniKit/ # Omnipod pump driver
│ ├── MinimedKit/ # Medtronic pump driver
│ ├── CGMBLEKit/ # CGM BLE communication
│ ├── G7SensorKit/ # Dexcom G7 driver
│ └── LibreTransmitter/ # Libre CGM driver
└── LoopWorkspace/ # Symlink to workspace
-
Clone the repository:
git clone https://github.com/liyuxiao2/INSU.git cd INSU -
Open the workspace in Xcode:
open Loop-260117-1851/LoopWorkspace/LoopWorkspace.xcworkspace
-
Configure signing:
- Select the Loop target
- Set your development team in Signing & Capabilities
- Update the bundle identifier if needed
-
Build and run on your device or simulator
The new home screen features a modern card-based interface built with SwiftUI:
- Dashboard Card: Large glucose display with trend arrow and IOB
- Pod Status Card: Reservoir level and pod expiration info
- Insulin Mode Card: Current delivery mode (automated/manual)
- Last Bolus Card: Recent bolus information
- Bottom Navigation Bar: Quick access to Home, Stats, History, and Profile
| Color | Hex Code | Usage |
|---|---|---|
| Insu Blue | #A4C8E1 | Primary accent |
| Dark Blue | #1F3C6E | Headers, titles |
| Background | #F5F6F7 | Main background |
| Card Background | #FFFFFF | Card surfaces |
This is a medical device application for automated insulin delivery. Patient safety is paramount.
- Insulin delivery algorithms (
LoopKit) - Pump communication drivers
- CGM communication drivers
- Dosing calculations
- Therapy settings validation
- Alert/safety systems
- HealthKit integration
- UI/UX views and styling
- Onboarding flows (non-therapy related)
- Navigation and presentation
- Visual design elements
When contributing to this project:
- Never modify safety-critical code listed above
- Follow the existing code style and architecture
- Test thoroughly on simulators before device testing
- Create feature branches from
main - Submit pull requests with clear descriptions
- Swift - Primary language
- SwiftUI - Modern UI framework (new components)
- UIKit - Legacy UI framework
- Combine - Reactive programming
- HealthKit - Health data integration
- CoreBluetooth - Device communication
This project is based on Loop, which is licensed under the MIT License. See the original Loop repository for license details.
This software is intended for investigational use only. It is not approved by the FDA or any regulatory body for commercial distribution. Users assume all risks associated with the use of this software for diabetes management.
- LoopKit - Original Loop development team
- Loop Community - Documentation and support
- All contributors to the Loop ecosystem