Create and Display Collage Assets | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7910383-ios-photos-framework/lessons/7

Lyndsey thanks for putting this class together. It’s been a lot of fun. As in software as well as life, there are always way to improve it. Keep up the great work.

I just edited a big rant that was more directed toward Apple and JPG versus PNG but it just tangents from the lesson.

This method:

class func createAdjustmentData(_ assets: [PHAsset]) -> PHAdjustmentData? {

is actually using the ‘Memento Pattern’ which RW has a good lecture on. When I learned the pattern it was always as a way to DO/UNDO a UI operation. Apple uses it a lot more, especially in ways of persisting change records.

https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/18

I would only recommend readers to watch the ‘intro’. If you get into the rest of the lecture you will need to start from the beginning as the teacher keeps refactoring an app with Design Patterns.

Cheers

@cupofjoe Really glad you liked it! Cheers! :]