Closed jverkoey closed 8 years ago
Was looking into taking a crack at this yesterday evening. Had a look atMDCTransaction
:
NS_SWIFT_NAME(Transaction)
@interface MDMTransaction : NSObject
#pragma mark Adding plans to a transaction
/** Associate an plan with a given target. */
- (void)addPlan:(nonnull id<MDMPlan>)plan
toTarget:(nonnull id)target
NS_SWIFT_NAME(add(plan:to:));
@end
Would tackling this issue also include adding another method to MDCTransaction
which would look something like https://github.com/material-motion/material-motion-runtime-android/blob/develop/library/src/main/java/com/google/android/material/motion/runtime/Transaction.java#L60 ?
Yep! We've got this listed in https://github.com/material-motion/material-motion-runtime-objc/issues/8, which if we could mark it as such would be a blocking issue on this one.
https://github.com/material-motion/material-motion-runtime-objc/issues/79 is a blocking issue as well.
The Named plans MVP has the ordered list of tasks: https://github.com/material-motion/material-motion-runtime-objc/milestone/4
Closing this out as https://github.com/material-motion/material-motion-runtime-objc/pull/88 has been merged in.
Example pseudo-code:
Should result in PlanA being added, removed, and then PlanB being added.