On iOS,If we want to display a shadow View,So basically do:
1 2 3 4 5 |
self.view.layer?.shadowColor = NSColor.black.cgColor self.view.layer?.shadowOpacity = 0.1 self.view.layer?.shadowOffset = CGSize(width: 0, height: 0) self.view.layer?.shadowRadius = 3 self.view.layer?.masksToBounds = false |
but,To the macOS,This would not work - no effect。
The answer lies in the macOS a View If you want to use [crayon-6704512[……]