Posts

Post not yet marked as solved
3 Replies
1.1k Views
Hello there,I'm desperatly trying to find the source code as mentioned from WWDC 19 swiftUI on watchOS talk.https://developer.apple.com/videos/play/wwdc2019/219/More specifically, I'm trying to write a custom flip card view but the fliped card give me a mirrored effect which is not what I desire.
Posted Last updated
.
Post not yet marked as solved
8 Replies
12k Views
When using SwiftUI's new TextEditor, you can modify its content directly using a @State. However, I haven't see a way to add a placeholder text to it. Is it doable right now? One example is the text input in Apple's own translator app. Which seems like a multiple lines text editor view that supports a placeholder text.
Posted Last updated
.
Post not yet marked as solved
1 Replies
871 Views
If you look at Apple's PencilKit Sample, you'll noticed apple used a dataset file called Notes.dataset to save Pencilkit draws. Inside the Notes.dataset, it contains a general json file for Asset Catalogue.But more interesting, there is a file called color.drawing, which saves the actual data produced by Pencilkit. My question is, how do you create this file as a developer? For example, I want to create a tutorial using Pencilkit and save it as a ".drawing" file, to load up on first launch.
Posted Last updated
.
Post not yet marked as solved
3 Replies
1.9k Views
When selecting a stroke path for object on PKCanvas, the option "Snap to Shape" appears. I understand this function is still in beta and has not made available natively to other PencilKit app. Is there a way using Stroke API to call this function directly after the user hold pencil for half a second when stroke is done drawing, just like how it behaves in native apps?
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.2k Views
I have been playing with samples, but I found the text recognition only works with Apple's note app. Using PencilKit sample will not trigger the recognition. Is it a private API? If it's not available to developers, is there an approach that could achieve similar hand writing recognition for developers?
Posted Last updated
.
Post not yet marked as solved
0 Replies
422 Views
I made a typo in my developer forum username. I waited years for this redesign so I can finally change it. But nope... And we are only allowed to pick from default avatars, like being a Mac computer? I'm not trying to be picky, nor did I ask for extreme customization. But not everyone is a nerd. I can settle with my incorrect username for the next 5 years, but at least let us choose a display name. Sometimes, those design choices are so confusing.
Posted Last updated
.
Post marked as solved
1 Replies
4.2k Views
I'm following tutorials "https://developer.apple.com/tutorials/swiftui/handling-user-input". After adding the yellow star using SF Symbols, I found that the symbols is missing using live mode either on device(iPhone X and iPad Pro 10.5) or on the simulators. I tested on the completed sample file and the issue reappears. I'm using the macOS beta 2, xcode beta 2 and ios beta 2.The code to draw the star:Image(systemName: "star.fill") .imageScale(.medium) .foregroundColor(.yellow)This issue reappears whether using modifiers or not.
Posted Last updated
.