I have copied and pasted your code into my datasource method and I am struggling to reproduce your error.
Could you provide the following information:
- iOS Version
- Xcode Version
- Devices/Simulators it appears on
- A small demo app showing a single pie chart that reproduces your issue
This would really help me identify the source of your issue.