GrowSpace UWB SDK for iOS (SpaceSDK-iOS)
SpaceSDK-iOS is a UWB-based iOS SDK developed by GrowSpace. It lets you implement ranging and indoor location estimation between iOS devices and GrowSpace UWB equipment.
About the GrowSpace UWB SDK for iOS
SpaceSDK-iOS is a UWB-based iOS SDK developed by GrowSpace.
Through BLE + UWB communication between iOS devices and GrowSpace UWB equipment, you can easily implement ranging and indoor location estimation.
Key features
- BLE + UWB distance measurement (ranging)
- RTLS-based 2D/3D location estimation (x, y, z)
- Real-time device connection/disconnection callbacks
- A simple API you can start with a single line of code
Install the UWB SDK for iOS (SPM) and set permissions
Installation (SPM)
Add the link below through Swift Package Manager:
https://github.com/freegrowenterprise/SpaceSDK-iOS
- Xcode → File → Add Packages
- Enter the URL above and select the latest version
Permissions (Info.plist)
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Required to scan for and connect to BLE devices.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Required for BLE and UWB location estimation.</string>
<key>NSNearbyInteractionUsageDescription</key>
<string>Required for UWB distance measurement.</string>
<key>NSMotionUsageDescription</key>
<string>Motion data is required for accurate location estimation.</string>
UWB ranging on iOS: initialize, start and stop
SDK initialization
let spaceSDK = GrowSpaceSDK()
Start ranging
spaceSDK.startUWBRanging(
maximumConnectionCount: 3,
onUpdate: { result in
print("Device: \(result.deviceName), Distance: \(result.distance)m")
},
onDisconnect: { result in
print("Disconnected: \(result.deviceName)")
}
)
Stop ranging
spaceSDK.stopUWBRanging {
print("✅ Ranging stopped")
}
RTLS location estimation on iOS
let anchors = [
"FGU-0001": (x: 0.0, y: 0.0, z: 0.0),
"FGU-0002": (x: 5.0, y: 0.0, z: 0.0),
"FGU-0003": (x: 0.0, y: 5.0, z: 0.0)
]
spaceSDK.startUwbRTLS(
anchorPositions: anchors,
onResult: { location in
print("Current location: x=\(location.x), y=\(location.y), z=\(location.z)")
},
onFail: { reason in
print("Location estimation failed: \(reason)")
}
)
Battery information (coming soon)
spaceSDK.battery (
onResult: { battery in
print("Battery: \(battery)")
},
onFail: { reason in
print("Failed to get battery information: \(reason)")
}
)
iOS test app
You can try every feature of SpaceSDK-iOS in the official test app below: