Hi, i downloaded the FacePainting app from here https://developer.apple.com/documentation/realitykit/creating_an_app_for_face-painting_in_ar but i don't understand the RaycastResult calculation like how to figure out the uv from the indices, can someone explain or annotate the steps, thanks.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Does SwiftData support UIImage as in CoreData specified here: https://www.swiftdevjournal.com/saving-images-in-core-data/ If it does, how to specify that in the @Model schema, especially using external storage to save the image in a separate file. Thanks.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
wwdc2023-10154
wwdc2023-10187
wwdc2023-10189
wwdc2023-10195
I know how to match unknown number of fields with using 'range' and '.regularExpression' option as shown below, but how do i do it with the new RegexBuilder or multi-line literal?
func matches(for regex: String, in text: String) -> [String] {
var result = [String]()
var startIndex = text.startIndex
let endIndex = text.endIndex
while let range = text.range(of: regex,
options: .regularExpression,
range: startIndex ..< endIndex)
{
result.append(String(text[range]))
startIndex = range.upperBound
}
return result
}