Hi,
I was wondering if there is a way I can lock the orientation of a Swift Playgrounds App Project (.swiftpm) to portrait. As there is no info.plist that I can edit the setting in.
Thanks!
Hi,
I have added an audio asset into my .swiftpm file in a folder called “Audios”, and have tried getting it by the following methods
Bundle.main.url(forResource: "Completed", withExtension: "mp3")
Bundle.main.url(forResource: "Completed", withExtension: "mp3", subdirectory: "AppData")
However, it still returns nil for both methods. I have also tried deleting and adding the file back but to no avail.
I would greatly appreciate any help! Thanks.
From the Swift Student Challenge section, it states that,
Your Swift Playgrounds app project must be built with and run on Swift Playgrounds 4.0.2 on iPadOS 15.4 or Xcode 13.3 on macOS 12.3. If it runs on iPadOS, it must be optimized to display properly on all models of iPad Pro.
By running on all models of iPad Pro, does it mean running the app using the Xcode Simulator set to iPad Pro/Directly running the app on Swift Playgrounds on iPad Pro?
Thanks!
Post not yet marked as solved
After updating to the latest beta of MacOS Big Sur (Public Beta), my Mac entered a boot loop. When First Aiding my Main Apple SSD, an error “snapshot fsroot tree corruptions are not repaired they will go away when the snapshot are deleted.”
There was also an error, "Cross Check: Mismatch between extent ref entry reference count (1) and calculated fsroot entry reference count (0) for extent (0x1930163 + 1)"
Many orphan files were found too. After first aid has completed, the First Aid restored to the original state.
Post not yet marked as solved
Hi everyone, I was trying to make a widget for my app, however it did not work, and I have decided to delete the widget product. However, when I right click on the product itself, the delete button is grayed out.
Anyone has any ideas on how to properly delete it?
Post not yet marked as solved
For the UISwipeGestureRecognizer, when I use direction = .left, it works.
However, when I use direction = .right, it does not work
// swipeGesture is the UISwipeGestureRecognizer
if (swipeGesture.direction = .right) {
// Code does not run
} else if (swipeGesture.direction = .left) {
// Code runs
}
Does anyone have any idea why this happens?