Using ReportKit with the DGCharts framework
ReportKit uses the DGCharts framework to generate charts (
https://github.com/ChartsOrg/Charts). Importing ReportKit will give you access to all the classes within the DGCharts framework. You do not need to import DGCharts separately.
If you have an existing project that uses DGCharts, you have two options:
1. Remove the DGCharts framework from your project and replace the existing import statements. For example:
Swift:
- //@import DGCharts
- import ReportKit
Objective-C:
- //@import DGCharts;
- @import ReportKit;
or
- //#import <DGCharts/DGCharts.h>
- #import <ReportKit/ReportKit.h>
2. If you would like to use the DGCharts framework in addition to ReportKit, do the following:
- Use the ReportKitCustomCharts framework. This version does not include the DGCharts framework and requires it to be added separately.
- Add the Charts.xcodeproj project to your Xcode project. To add Charts.xcodeproj to your project, simply drag the Charts.xcodeproj file into your project and add the DGCharts.framework to the Embedded Frameworks section in your project settings. See the Usage section of the DGCharts project page (https://github.com/ChartsOrg/Charts). NOTE: If you use the Swift Package Manager, you will receive a runtime error when attempting to load the ReportKit framework.
Related Articles
Does ReportKit support SwiftData?
Yes, classes used in SwiftData are supported. However in order for ReportKit to access the properties of your SwiftData classes, they must conform to the CustomReflectable protocol. Below is an example class that conforms to this protocol. This is ...
Upload Symbols Failed message when uploading to App Store Connect
While uploading your application to App Store Connect, you may get a warning similar to the following: The archive did not include a SYM for the ReportKit.framework with the UUIDs [54674DE7-25DA-3D87-A45E-1CB872947D51]. Ensure that the archive's dSYM ...
If I cancel my subscription can I still generate reports in my app?
Yes. Any reports that you designed using a licensed copy of Report Builder will still work. You will need an active subscription to Report Builder in order to make changes to the report design.