Posts

Post marked as solved
4 Replies
1.7k Views
On App Store there is the new request to declared if I am a trader operator or not under the new EU law. As many I'm a single developer so the declaration can be reduced to "any natural person [...] who is acting [...] for purposes relating to his or her trade, business, craft or profession.", to learn more Apple links to EU commission. I'm not 100% sure if, a single developer whit very small business and which use only Apple Store to distribute its apps, can declared "This is the account of a supplier who is not a trader". Is someone more legal expert than me able to replay?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
0 Replies
278 Views
This sample code colorise the navigation bar, but while the window is in fullscreen or in splitView on the Mac, only the left sidebar is colorised. How can be the full navigation bar be colorised also on full screen? var body: some Scene { WindowGroup { NavigationSplitView { ForEach(1..<3) { (i) in Text("\(i)") } } detail: { ForEach(1..<3) { (i) in Text("\(i)") } } .toolbarBackground(.yellow) } }
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
0 Replies
600 Views
I agree with Apple Human Interface Guidelines that states "Design a launch screen that’s nearly identical to the first screen of your app", but: A SwiftUI App for both macOS and iOS cannot have a storyboard Launch Screen Images can be scaled only at: 2x/3x, Compact/Regular, iPhone/iPad Launch Screen can have central, top (Navigation bar) and bottom (Tab Bar and Toolbar) images Launch screen images are centered in the screen space Launch screen images are stretched to fill the screen space With the rules above, I'm unable to create launch screens for every screen size. If the image in the asset is sized for a small screen, i.e. an iPhone SE, it will be distorted in a 'long' screen, i.e. an iPhone 14, and viceversa. Have I missed some possibility to better define how to define or manage the launch screen images?
Posted
by Luca_65.
Last updated
.
Post marked as solved
3 Replies
598 Views
The sample code: struct ContentView: View { var count: Int = 0     var body: some View {         VStack { Text("Order \(count) Tickets")         }     } } Apparently don't use the Localizable.stringsdict <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Order %d Tickets</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@Tickets@</string> <key>Tickets</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>zero</key> <string>zero</string> <key>one</key> <string>one</string> <key>other</key> <string>other</string> </dict> </dict> </dict> </plist> What what am I doing wrong?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
I have a storyboard based project with UIPickerView and I like to port it on the Mac with "Optimised Interface for Mac". My idea was to: In the storyboard disable installation of the UIPickerView for idiom=Mac variation. In the code substitute UIPickerView with SwiftUI Picker. What I obtained is the error: "UIPickerView is not supported when running Catalyst apps in the Mac idiom". This error is caused by the SwiftUI Picker (it is present even if remove UIPickerView and all its references). If both the UIPickerView and the SwiftUI Picker cannot be used in a storyboard based project, how can a generic Picker behaviour be obtained in a storyboard based project compatible with Mac idiom?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
0 Replies
381 Views
The Apple Distribution certificate is present in the login Keychain, as well as the Development one. In Xcode preferences both are visibile and valid. In Xcode target only the development certificate is present and I'm unable to set the distribution one. For this reason my last app has been refused on the Apple Store Connect. How can I set the distribution certificate on the App target?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
0 Replies
463 Views
On MacOS popups have opacity < 1. in Dark Mode, text on popup over a clear background isn't visible clearly. How to change the opacity of the popup?
Posted
by Luca_65.
Last updated
.
Post marked as solved
6 Replies
4.8k Views
Studing SwiftUI in Apple's HandlingUserInput, I'm blocked in this error:No ObservableObject of type UserData found. A View.environmentObject(_:) for UserData may be missing as an ancestor of this view.The code is:final class UserData: ObservableObject { @Published var showFavoritesOnly = false @Published var landmarks = landmarkData }struct LandmarkList: View { @EnvironmentObject var userData: UserData var body: some View { NavigationView { List(landmarkData) { landmark in if !self.userData.showFavoritesOnly || landmark.isFavorite { NavigationLink(destination: LandmarkDetail(landmark: landmark)) { LandmarkRow(landmark: landmark) } } } .navigationBarTitle(Text("Landmarks")) } } } struct LandmarkList_Previews: PreviewProvider { static var previews: some View { LandmarkList() .environmentObject(UserData()) } }".environmentObject(UserData())" is present in the preview."@EnvironmentObject var userData: UserData" in the View.But the use of userData (if !self.userData.showFavoritesOnly) cause the fatal error.Can someone help me in undertanding how to proceed?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
1 Replies
638 Views
I added in the Xcode project: <my App>/ Resources/ <my App>.help/ Content/ Info.plist Resources/ search.helpindex /*localized */ index.html /*localized */ Page1.html /*localized */ And, in the Project's Info.plist: <key>CFBundleHelpBookFolder</key> <string><my App>.help</string> <key>CFBundleHelpBookName</key> <string><project' bundle id>.help</string> But when I archive it, the book help has been moved: <my App>/ Content/ Resources/ Info.plist en.lproj/ search.helpindex index.html Page1.htm So the help book, as is, is missing. If I manually move the files and folders in the Package to reconstruct the help book structure, it works. What I have to do in Xcode to let it archive the Help book?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
116 Replies
49k Views
After uploading a new App to the App Store Connect i receive an e-mail stating:ITMS-90034: Missing or invalid signature - The bundle '...' at bundle path 'Payload/...' is not signed using an Apple submission certificate.The App don't use any capability.I've used Xcode to upload, as in a previous App which now is on the App Store.All the apps use the default configuration: "Automatically manage signing", Provisioning profile "Xcode Managed Profile", Signing Certificate Apple Development: ############The requested Signing Certificate is present in the keychain in 3 versions, the last one is valid (the older 2 are revoked).What I should correct?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
2 Replies
711 Views
On Xcode 13.3 and iOS15.4 I don't found a way to add something in the bottom bar without Xcode warning. This sample of swiftUI code: { var body: some View { Text("Hello, World!") .toolbar { ToolbarItem(placement: .bottomBar) { Text("Bottom Bar") } } } } causes: "Unable to simultaneously satisfy constraints." (a long list follows). Am I missing something?
Posted
by Luca_65.
Last updated
.
Post not yet marked as solved
1 Replies
604 Views
In App Store Connect Trends tab the Sales graph show one sale happened the last day of the period; all other graphs (App Units, Top Apps, Territories) have don't have the corresponding app.
Posted
by Luca_65.
Last updated
.
Post marked as solved
11 Replies
8.4k Views
In iOS 12 and 13, up to 13.4, few lines of codes:navigationController?.navigationBar.isTranslucent = falsenavigationController?.navigationBar.barTintColor = .blacknavigationController?.navigationBar.tintColor = .redallow to hide the status bar under the navigation bar.With swiftUI is perhaps even simpler.statusBar(hidden: hideStatusBar)but it requires to rewrite the whole app from storyboard to swiftUI.Hiding the status bar, or go to full screen, is still be possible without using swiftUI on legacy code?
Posted
by Luca_65.
Last updated
.
Post marked as solved
4 Replies
3.5k Views
I would add a template image at a button to change its color runtime.I used Preview to draw and save it as a pdf.But it is rendered only as a uniform square color (which color I can change runtimne).How can I obtain the template pdf image?Why the pdf saved by Preview is not working?
Posted
by Luca_65.
Last updated
.