Use a reasonable fallback when adding visualization views to the runtime container view.
ClosedPublic

Authored by featherless on Apr 14 2017, 3:37 PM.

Diff Detail

Repository
rREACTIVEMOTIONSWIFT reactive-motion-swift
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
featherless created this revision.Apr 14 2017, 3:37 PM
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptApr 14 2017, 3:37 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O4: Material Apple platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
markwei accepted this revision.Apr 14 2017, 3:47 PM
markwei added a subscriber: markwei.

in what cases does a view not a parent?

This revision is now accepted and ready to land.Apr 14 2017, 3:47 PM
featherless added a comment.EditedApr 14 2017, 3:56 PM

in what cases does a view not a parent?

runtime.shouldVisualizeMotion = true

let view = UIView()
runtime.add(Draggable(), to: view) // Crashes.

someOtherView.addSubview(view)
This revision was automatically updated to reflect the committed changes.