STPopupPreview icon indicating copy to clipboard operation
STPopupPreview copied to clipboard

Action Buttons and arrow not visible.

Open xor22h opened this issue 7 years ago • 1 comments

After compiling latest library 1.0.3 with latest xcode and do not longer see action buttons and arrow.

Tried to use xcode layout debugger and it responds that backgroundContentView size is 0,0 at position 0,0; screen shot 2017-11-20 at 10 51 03 pm

xor22h avatar Nov 20 '17 17:11 xor22h

More findings:

(lldb) po backgroundContentView.subviews
<__NSArrayM 0x60400045da30>(
<STPopupPreviewArrowView: 0x7f98dabc1f00; frame = (165.5 94; 44 20); opaque = NO; animations = { opacity=<CASpringAnimation: 0x60800043f000>; }; layer = <CALayer: 0x608000622fc0>>,
<STPopupPreviewActionSheet: 0x7f98daba4ed0; frame = (0 0; 0 0); layer = <CALayer: 0x60800023b420>>
)

(lldb) po ((UIVisualEffectView*)_popupController.backgroundView).contentView.subviews
<__NSArray0 0x60400000c0e0>(

)

Changing backgroundContentView with ((UIVisualEffectView*)_popupController.backgroundView).contentView on two lines in STPopupPreviewRecognizer.m file solves a problem;

xor22h avatar Nov 21 '17 13:11 xor22h