Post

Replies

Boosts

Views

Activity

Reply to Cannot convert value of type 'ChooseModel.Angle' to expected argument type 'Angle'
struct ChooseModel: Codable { var id = UUID()     var decision: String     var choices: [String]     var startAngle: ChooseModel.Angle // Qualify Your type Angle by the `ChooseModel` namespace     var endAngle: ChooseModel.Angle // Qualify Your type Angle by the `ChooseModel` namespace     @CodableColor var color: UIColor     struct Angle: Codable, Equatable {         var degrees: Double     } } // Do this `-90 + chooseMV.model.[startAngle|endAngle].degrees` instead of `ChooseModel.Angle(degrees: -90.0).degrees` since the instance of `ChooseModel.Angle` is not used beyond these two lines. path.addArc(                         center: center,                         radius: width * 0.5,                         startAngle: -90.0 + chooseMV.model.startAngle.degrees, // startAngle are CGFloat types and not Angle types so you will to use the `degrees` properties of the Angle objects for the computation to CGFloat                         endAngle: -90.0 + chooseMV.model.endAngle.degrees, // endAngle are CGFloat types and not Angle types so you will to use the `degrees` properties of the Angle objects for the computation to CGFloat                         clockwise: false)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to My app update is rejected
You're supposed to do exactly what #1 & #2 outline. Before just prompting the user with the Contacts permission request, show a screen to the user explaining to them why your app needs access to their private contacts data, what you're going to do with the data (Their entire address book) before calling the API for access to their Contacts. If all you need is an email or phone number, just create a screen and ask them to provide the email or phone number as part of your onboarding flow. Don't have a website? get one so you can provide a link to the privacy policy that governs your data usage policies.
Dec ’21