Post

Replies

Boosts

Views

Activity

Reply to How Can I Allow a Developer to Upload My App?
When you are working with a trusted developer, the normal procedure is to add them to your Development Team on App Store Connect (Users and Access). You assign them an appropriate role (depending on what you want them to do), which might be (for example): • Developer (for development) • App Manager (for distribution) The role allows the developer to do what they need to do, and no more. For example, no access to your accounts! With an untrusted developer, then things are much harder. You either need to do things yourself, or find someone that you do trust, and get them to do it! On Users and Access, you can see the exact "Permissions" that each role has (for the apps you have assigned to them), to help you decide which to use. More information here: https://developer.apple.com/support/roles/
Sep ’21
Reply to Returning different dates from CoreData objects using NSPredicate
On a side note, you shouldn't rely on separate calls to Date() returning the same value! Date returns millisecond precision, so consecutive calls to Date() might return the same value (they probably will?), but they might not. Better to say: let dateNow = Date() var objects = [ Object(value: 100, date: dateNow, imageTemplate: "30"), Object(value: 200, date: dateNow, imageTemplate: "20"), Object(value: 400, date: dateNow + 84000, imageTemplate: "10") ]
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’21
Reply to Picker overlapping each other
Trying your code on an iPad, where there is plenty of room (and using WheelPickerStyle(), so it looks the same as the phone version), it works okay. Which suggests that you may be running out of space. I would look at the framing and clipping code, perhaps get rid of that, and start from clean, then gradually add it back?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to Info.plist NSAdvertisingAttributionReportEndpoint bug
Your Info.plist seems to have an invalid format, as the string value for NSAdvertisingAttributionReportEndpoint is unterminated. Viewing Info.plist, I would expect something like this: And viewing Info.plist as Source Code (so the text can be directly edited), would give this: <key>NSAdvertisingAttributionReportEndpoint</key> <string>https://notyou.co.uk</string> So I suggest you open your Info.plist as Source Code, and add the missing text to the "string" line.
Sep ’21
Reply to Color literal not displaying as Color Swatch?
You asked: should color literals work inside Views? So I: • Copied your code (above... the text, not the screenshot) • Pasted it into an app • Ran the app • The color literal worked, inside a View I now think you are asking something else. I think you are asking: In Xcode, is the code... Color(#colorLiteral(red: 0.292, green: 0.081, blue: 0.6, alpha: 255) ...replaced with a block of color If I have understood that correctly, my answer to that is "no".
Sep ’21
Reply to Core Data Predicate Filter By Today's Date
I've used predicates like: let predicate = NSPredicate(format: "creationDate >= %@", startDate as CVarArg) But beware when comparing dates for equality... remember what a Date is (a date and a time)... so you probably don't want that! e.g. try a comparison where the stored date is >= the start of today.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to Fatal errorUnexpectedly found nil while unwrapping an Optional value
You are force-unwrapping 3 Optionals, and you say the error comes from the first line. • SCNScene(named: "art.scnassets/Pokeball.scn")! • scene.rootNode.childNode(withName: "pokeball", recursively: false)! • scene! "scene!" doesn't make sense, since "scene" is not an Optional... I would expect this to give you a compiler error. I suggest you try some simple diagnostics, like: if let scene = SCNScene(named: "art.scnassets/Pokeball.scn") {     print("got scene: art.scnassets/Pokeball.scn") } else {     print("couldn't find scene: art.scnassets/Pokeball.scn") }
Topic: Spatial Computing SubTopic: ARKit Tags:
Sep ’21