when I delete data, the size of the app remains unchanged and sometimes increases,
AFAIK, deleting data does not mean that you purge the space and compact the database.
You should probably have to recreate the database completely, just keeping existing records.
In any case, does this cause you problem or is this for understanding ?
Note: may be interested in reading this: https://stackoverflow.com/questions/64677236/how-to-check-the-size-of-coredata-in-swift
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: