Creating Neumorphic Switch in SwiftUI

NeumorphicButton: A quick demonstration of neutral buttons/switches/toggle buttons using SwiftUI to create some neumorphic components. For some reason, if you press and hold .onEnded, the drag gesture cannot detect .onEnded. If anyone knows a better working solution, please let me know. Otherwise, feel free to use any of these elements in your own projects.

zip 文件大小:102.53KB