I use an open source package via SPM, but I would like to change the details within one specific func originalMethod()
in this package.
As the code of SPM packages is not editable, I can't change the code. I cannot swizzle the method with Swift 5.1 @_dynamicReplacement(for: originalMethod)
as the original method is not marked as dynamic
.
What other options do I have besides copying the package manually into the project?