noahsark769 / cifilter.app

CIFilter documentation and examples project
https://cifilter.app
MIT License
248 stars 24 forks source link

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

Closed noahsark769 closed 5 years ago

noahsark769 commented 5 years ago

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

shpakovski commented 5 years ago

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?

noahsark769 commented 5 years ago

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

shpakovski commented 5 years ago

Sounds great, yes!

noahsark769 commented 5 years ago

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.