The reverseContentLayout is currently determined by the TOCropToolBar's semanticContentAttributes and is used when determining whether the view should be reversed left or right.
However, this is determined at setup time and cannot be changed later.
This makes it difficult to determine the layout direction externally.
How
Expose reverseContentLayout and allow it to be changed externally.
In addition, call setNeedsLayout in the setter to change the layout according to the changed value.
Why
The
reverseContentLayout
is currently determined by theTOCropToolBar
'ssemanticContentAttributes
and is used when determining whether the view should be reversed left or right.https://github.com/TimOliver/TOCropViewController/blob/a942414508012b13102f776eb65dac655f31cabb/Objective-C/TOCropViewController/Views/TOCropToolbar.m#L64
However, this is determined at setup time and cannot be changed later. This makes it difficult to determine the layout direction externally.
How
Expose
reverseContentLayout
and allow it to be changed externally. In addition, callsetNeedsLayout
in the setter to change the layout according to the changed value.ScreenShot
CropViewControllerExample
TOCropViewControllerExample