title: Strange drop shadow appears on my programmatically drawn view
body: <p>I can't explain it, but my programmatically drawn views suddenly have drop shadows. It was working as it should, but somewhere along the line, it stopped. The code that I was editing doesn't even run before this bug.</p>
  
  <p>I've tried to research, but unfortunately, too many people want to add a drop shadow.</p>
  
  <p>Update: It is due to something that happens when dragging/moving the view (as it happens when entering the view through the right menu, but not otherwise). I haven't solved it yet.</p>
  
  <p><img src="https://i.stack.imgur.com/Jyxw4.png" alt="enter image description here"></p>