Post

Replies

Boosts

Views

Activity

Reply to Override primaryColor and so on
"PrimaryColor" color asset name resolves to a conflicting Color symbol "primary". Try renaming the asset. The message is pretty explicit. You cannot override by giving the same name. See detailed answer in Swift.org: https://forums.swift.org/t/changing-color-primary-and-color-secondary/58838 They are static properties that are controlled by the OS, with the color displayed depending on context (e.g., heading vs. general text) and the user's system settings (such as dark mode vs. light mode). As you may know, you can set an accentColor which is a broad theme color that is applied to views and controls. May or may not get you in the direction of what you're trying to achieve: https://developer.apple.com/documentation/swiftui/color/accentcolor
Sep ’24
Reply to Text Max Character Number SwiftUI
Did you set a frame for the Text or TextField ? And use truncationMode Text("This is a block of text that will show up in a text element as multiple lines. The text will fill the available space, and then, eventually, be truncated.") .frame(width: 150, height: 150) .truncationMode(.tail)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to App review screenshot has wrong dimensions
What screenshot should it be ? This size is for 6.7" 6.9" -> 1320 x 2868 6.7" -> 1290 x 2796 6.5" -> 1284 × 2778 Did you use the screenshot for the 6.7" screen size in AppstoreConnect (and not for 6.5") ? It seems that now (very recently) AppstoreConnect requests 6.9" screen size (iPhone 16 ProMax), but it may be optional. If you cannot generate the screenshots for 6.9 and if it is optional, provide only 6.5" Otherwise, try to resize in Preview App to the right dimension.
Sep ’24
Reply to Unable to test builds on testflight, "The requested app is not available or doesn’t exist."
Welcome to the forum. We may understand your frustration, but it would be more useful to have precise and factual information. Which version of Xcode ? How do you try to install the builds ? AppStore Connect ? Other mean ? Once you archived your app, did you receive a mail that it was processed and available for TestFlight ? Did you try to contact support ?
Sep ’24
Reply to Why are normal version iterations consistently rejected
The fact that a version of(here 1.0) passes the review does not mean it will pass later on. It just means that issues were not detected first time but have been spotted in the new review. And app will not be accepted until it is resolved or you provide a convincing explanation. Have you found what other app the reviewer refers to ? Are you aware that your app is so close to another app (including metadata and binary).
Sep ’24
Reply to Can my app still be listed?
You got an answer from review team. So now, you just have to wait and hope that your tentative imitation of another app will be "forgiven". In submitting the new version, did you explain what you did, the answer you got on the forum, etc…   My goal is to have the app listed before my account is disabled, This would be useless as the app would immediately be removed from the appstore on account termination.
Sep ’24
Reply to Variable for DestinationView
I would do it this way with ViewBuilder: struct ZodiacSign: Identifiable { let id = UUID() var name: String var symbol: String // as per Swift conventions, should start with lowercase // Replaced by ViewBuilder var DestinationView: View } @ViewBuilder func zodiacDestination(name: String) -> some View { switch name { case "Aries" : AriesView() case "Taurus" : TaurusView() case "Gemini" : GeminiView() case "Cancer" : CancerView() case "Leo" : LeoView() case "Virgo" : VirgoView() case "Libra" : LibraView() case "Scorpio" : ScorpioView() case "Sagittarius": SagittariusView() case "Capricorn": CapricornView() case "Aquarius" : AquariusView() case "Pisces" : PiscesView() default: EmptyView() } } struct ContentView: View { @State var starSigns = [ // Need to be a State var ZodiacSign(name: "Aries", symbol: "♈︎"), // DestinationView: AriesView()), ZodiacSign(name: "Taurus", symbol: "♉︎"), // DestinationView: TaurusView()), ZodiacSign(name: "Gemini", symbol: "♊︎"), // DestinationView: GeminiView()), ZodiacSign(name: "Cancer", symbol: "♋︎"), // DestinationView: CancerView()), ZodiacSign(name: "Leo", symbol: "♌︎"), // DestinationView: LeoView()), ZodiacSign(name: "Virgo", symbol: "♍︎"), // DestinationView: VirgoView()), ZodiacSign(name: "Libra", symbol: "♎︎"), // DestinationView: LibraView()), ZodiacSign(name: "Scorpio", symbol: "♏︎"), // DestinationView: ScorpioView()), ZodiacSign(name: "Sagittarius", symbol: "♐︎"), // DestinationView: SagittariusView()), ZodiacSign(name: "Capricorn", symbol: "♑︎"), // DestinationView: CapricornView()), ZodiacSign(name: "Aquarius", symbol: "♒︎"), // DestinationView: AquariusView()), ZodiacSign(name: "Pisces", symbol: "♓︎") // DestinationView: PiscesView()) ] var body: some View { // VStack { NavigationView { // You have to put in a NavigationView List { ForEach(starSigns, id: \.id) {zodiacSign in // should start with lowercase NavigationLink(destination: zodiacDestination(name: zodiacSign.name)) { Text(zodiacSign.symbol) Text(zodiacSign.name) } } } } } } struct AriesView: View { var body: some View { VStack { Text("♈︎ Aries is a constellation…") } } } struct TaurusView: View { var body: some View { VStack { Text("♉︎ Taurus is a constellation…") } } } struct GeminiView: View { var body: some View { VStack { Text("♊︎ Gemini is a constellation…") } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to Override primaryColor and so on
"PrimaryColor" color asset name resolves to a conflicting Color symbol "primary". Try renaming the asset. The message is pretty explicit. You cannot override by giving the same name. See detailed answer in Swift.org: https://forums.swift.org/t/changing-color-primary-and-color-secondary/58838 They are static properties that are controlled by the OS, with the color displayed depending on context (e.g., heading vs. general text) and the user's system settings (such as dark mode vs. light mode). As you may know, you can set an accentColor which is a broad theme color that is applied to views and controls. May or may not get you in the direction of what you're trying to achieve: https://developer.apple.com/documentation/swiftui/color/accentcolor
Replies
Boosts
Views
Activity
Sep ’24
Reply to Text Max Character Number SwiftUI
Did you set a frame for the Text or TextField ? And use truncationMode Text("This is a block of text that will show up in a text element as multiple lines. The text will fill the available space, and then, eventually, be truncated.") .frame(width: 150, height: 150) .truncationMode(.tail)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to App review screenshot has wrong dimensions
What screenshot should it be ? This size is for 6.7" 6.9" -> 1320 x 2868 6.7" -> 1290 x 2796 6.5" -> 1284 × 2778 Did you use the screenshot for the 6.7" screen size in AppstoreConnect (and not for 6.5") ? It seems that now (very recently) AppstoreConnect requests 6.9" screen size (iPhone 16 ProMax), but it may be optional. If you cannot generate the screenshots for 6.9 and if it is optional, provide only 6.5" Otherwise, try to resize in Preview App to the right dimension.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Unable to test builds on testflight, "The requested app is not available or doesn’t exist."
Welcome to the forum. We may understand your frustration, but it would be more useful to have precise and factual information. Which version of Xcode ? How do you try to install the builds ? AppStore Connect ? Other mean ? Once you archived your app, did you receive a mail that it was processed and available for TestFlight ? Did you try to contact support ?
Replies
Boosts
Views
Activity
Sep ’24
Reply to Как оплатить членство в Беларуси | How to pay for membership in Belarus
Have you checked with your bank that it is allowed to trade despite sanctions ?
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to -1 in connect
That's not an issue, that's a refund. It can occur in the following day of the download.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Why are normal version iterations consistently rejected
The fact that a version of(here 1.0) passes the review does not mean it will pass later on. It just means that issues were not detected first time but have been spotted in the new review. And app will not be accepted until it is resolved or you provide a convincing explanation. Have you found what other app the reviewer refers to ? Are you aware that your app is so close to another app (including metadata and binary).
Replies
Boosts
Views
Activity
Sep ’24
Reply to Upload app to App Store Connect
I was invited to App Store Connect (personal account) Is it your own personal account ? Who invited you ? PS: take care, you posted the same question twice.
Replies
Boosts
Views
Activity
Sep ’24
Reply to App Store Ready for Sales
Welcome to the forum. It may take some time before app shows on Appstore, but 1 day is really long. Sorry for the trivial question: did you declare the app to be available in the country from where you consult Appstore ?
Replies
Boosts
Views
Activity
Sep ’24
Reply to Upload an app to TestFlight: failed with errors
Did you try with Xcode 15.4 ? Do you import frameworks ?
Replies
Boosts
Views
Activity
Sep ’24
Reply to Can my app still be listed?
You got an answer from review team. So now, you just have to wait and hope that your tentative imitation of another app will be "forgiven". In submitting the new version, did you explain what you did, the answer you got on the forum, etc…   My goal is to have the app listed before my account is disabled, This would be useless as the app would immediately be removed from the appstore on account termination.
Replies
Boosts
Views
Activity
Sep ’24
Reply to How to display multiple languages ​​in appstoreconnect
Have you added the language in Localizations list ? Once done, you should see the language in Bundle settings and in the info.plist Also, check in infoPlist that all languages are checked on:
Replies
Boosts
Views
Activity
Sep ’24
Reply to iOS app fails to run with Xcode 16, no issue with Xcode 15 (no build errors)
Did you get the problem with Xcode16.1ß1 or 16.0ß5 ? Just an idea, from this very old thread: https://stackoverflow.com/questions/29209582/make-sure-your-project-build-settings-are-generating-a-dsym-file-debug-informat Check that you create a DSYM file (go to the build settings -> Build options) Hope that helps.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Variable for DestinationView
I would do it this way with ViewBuilder: struct ZodiacSign: Identifiable { let id = UUID() var name: String var symbol: String // as per Swift conventions, should start with lowercase // Replaced by ViewBuilder var DestinationView: View } @ViewBuilder func zodiacDestination(name: String) -> some View { switch name { case "Aries" : AriesView() case "Taurus" : TaurusView() case "Gemini" : GeminiView() case "Cancer" : CancerView() case "Leo" : LeoView() case "Virgo" : VirgoView() case "Libra" : LibraView() case "Scorpio" : ScorpioView() case "Sagittarius": SagittariusView() case "Capricorn": CapricornView() case "Aquarius" : AquariusView() case "Pisces" : PiscesView() default: EmptyView() } } struct ContentView: View { @State var starSigns = [ // Need to be a State var ZodiacSign(name: "Aries", symbol: "♈︎"), // DestinationView: AriesView()), ZodiacSign(name: "Taurus", symbol: "♉︎"), // DestinationView: TaurusView()), ZodiacSign(name: "Gemini", symbol: "♊︎"), // DestinationView: GeminiView()), ZodiacSign(name: "Cancer", symbol: "♋︎"), // DestinationView: CancerView()), ZodiacSign(name: "Leo", symbol: "♌︎"), // DestinationView: LeoView()), ZodiacSign(name: "Virgo", symbol: "♍︎"), // DestinationView: VirgoView()), ZodiacSign(name: "Libra", symbol: "♎︎"), // DestinationView: LibraView()), ZodiacSign(name: "Scorpio", symbol: "♏︎"), // DestinationView: ScorpioView()), ZodiacSign(name: "Sagittarius", symbol: "♐︎"), // DestinationView: SagittariusView()), ZodiacSign(name: "Capricorn", symbol: "♑︎"), // DestinationView: CapricornView()), ZodiacSign(name: "Aquarius", symbol: "♒︎"), // DestinationView: AquariusView()), ZodiacSign(name: "Pisces", symbol: "♓︎") // DestinationView: PiscesView()) ] var body: some View { // VStack { NavigationView { // You have to put in a NavigationView List { ForEach(starSigns, id: \.id) {zodiacSign in // should start with lowercase NavigationLink(destination: zodiacDestination(name: zodiacSign.name)) { Text(zodiacSign.symbol) Text(zodiacSign.name) } } } } } } struct AriesView: View { var body: some View { VStack { Text("♈︎ Aries is a constellation…") } } } struct TaurusView: View { var body: some View { VStack { Text("♉︎ Taurus is a constellation…") } } } struct GeminiView: View { var body: some View { VStack { Text("♊︎ Gemini is a constellation…") } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Scroll to Top gesture doesn't work when pressed in Status Bar.
It works okay, but the Scroll to top gesture doesn't work here when pressed in the iPhones StatusBar. StatusBar, do you mean info at top of screen ? Then why would you scroll from there to the top ? AFAIU, behaviour is normal. Scroll to top gesture : which gesture do you refer to exactly ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24