Closed arkus-pm closed 1 year ago
Might be better idea to make size as optional enum: .screenSize
and .contentSize
. Since it's been pretty handy to have just a content in phone's frame size.
Looks great! But why do we need the @mainactor annotations?
Can't really explain, I've reused this part from the previous version and decided not to change things that work and I am not aware of how
Ok :) In that case, I think I will just deprecate the backport altogether since I don't use it myself and having it in the library will just become messy.
Great job with the backport design, though! I hope you can use it in your own projects with great success.
This:
ImageRenderer(content: Text("Hello").frame(width: 1080, height: 1080))
Is equivalent to:
ImageRenderer(content: Text("Hello"), size: CGSize(width: 1080, height: 1080))