Posts

Post not yet marked as solved
0 Replies
144 Views
Hi, I'm coming from a Nodejs background. When I used to modularize my code into separate files I had to export every file outside of the main file. Then, within the main fail, I had to import all external modules. I don't see this in XCode when multiple files exist within a folder. It's as if they automatically interact with each other. Is the process of exporting and importing to the main file in XCode native to the IDE? Best, Matt
Posted Last updated
.
Post not yet marked as solved
2 Replies
206 Views
I want to enable the UIView Image for gestures and touch events. The provided code for this is in the docs, but how do you use it? var isUserInteractionEnabled: Bool { get set } https://developer.apple.com/documentation/uikit/uiimageview/1621063-isuserinteractionenabled
Posted Last updated
.
Post not yet marked as solved
1 Replies
290 Views
Swift Playgrounds Shapes has code I would like to use in Xcode, but it doesn't work. I have imported UIKit and SpriteKit. How do you create a circle and set it in a scene? I'd also like to modify its isDraggable Boolean value, and add the event handlers: .touch and .touchUp Thanks!
Posted Last updated
.