noahsark769/cifilter.app

Use filters.json to generate a type-safe Swift CIFilter library

Closed this issue · 4 comments

This has been suggested by several people - since we have all the filter data, we could autogenerate Swift code for type-safe applications of the filters, instead of the current solution of string typing.

A good way to go about this could be to put the generated files in a new folder in this repo, and have a TypeSafeCIFilter.podspec in the root which references them

Hi, thanks a lot for building this tool! A full-featured library is a massive work, how about providing simple code syntax-highlighted snippets right on the website?

Definitely! Are you thinking of something like in #40?

Sounds great, yes!

As of iOS 13+, there seem to be classes available for each filter, e.g. this one for CIBokehBlur. Though the documentation is still in beta, it's reasonable to assume that these classes will take the place of any type-safe library that we would generate. Going to close this issue for now.