Create a Custom Menu | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/6485147-drawing-in-ios-with-swiftui/lessons/15
1 Like

Hi! I love the tutorial on drawing using SwiftUI. However, I am running into a problem with the Custom Menu in this lesson. I followed the steps exactly, but the scaleEffect command is not working on the preview. It doesn’t seem to be detecting the isOpen == true toggle state. I also downloaded the completed code and the scaleEffect command in FlyoutMenuViewOption is not working there either.

I’m glad you’re enjoying the tutorial :slight_smile:

Unfortunately it’s the same for me here on Xcode 11.4.1. Have you recently updated your Xcode?

It works for me on the simulator.

Sometimes things that won’t work in Preview have to be run using the simulator or a device.

Perhaps a future version of Xcode will restore the functionality to Preview.