Post

Replies

Boosts

Views

Activity

Reply to LS Minimum System Version in build metadata in App Store Connect
Effectively, doc is a bit confusing. In Xcode 12.5 release notes, we see that Xcode developers were themselves a bit confused !: Resolved Issues Fixed an issue that could cause code completion, live issues, and other code-analysis features to produce incorrect results after you moved any of the source files of an open Xcode project. (57054858) Large workspaces now open faster. (70276306) Fixed an issue that could cause iOS 12.5, tvOS 14.5, watchOS 7.4, and earlier to set the minimum deployment target based on the app’s LSMinimumSystemVersion instead of its MinimumOSVersion. (76221112) Deprecations Don’t use the iOS MinimumOSVersion information property list key to declare the minimum release of macOS in which your app runs. Use LSMinimumSystemVersioninstead. (73890473) Future releases of macOS ignore the MinimumOSVersion key in Mac apps, including apps built with Mac Catalyst. Future releases of macOS use the LSMinimumSystemVersion key in iOS apps built with Xcode 12.5 or later. If an iOS app doesn’t include an LSMinimumSystemVersionkey, future releases of macOS compare the app’s MinimumOSVersion with the version of its Mac Catalyst runtime to determine compatibility. . Reading doc for MinimumOSVersion states: MinimumOSVersion The minimum version of the operating system required for the app to run in iOS, iPadOS, tvOS, and watchOS. Discussion The App Store uses this key to indicate the OS releases on which your app can run. Don’t specify MinimumOSVersion in the Info.plist file for apps built in Xcode. It uses the value of the Deployment Target in the General settings pane. For macOS, see LSMinimumSystemVersion.
Nov ’21
Reply to UIModalTransitionStyle.partialCurl fails when dismiss(animated:) called
But, sadly, it doesn't allow for the nice-looking transition from the second VC back to the first VC. You're right.That is clearly a bug as noted in the SO thread I indicated. I tried by setting all transitions to full screen, to na avail. Doc says it is possible (even though that creates many restrictions): UIModalTransitionStyle.partialCurl Discussion When the view controller is presented, one corner of the current view curls up to reveal the presented view underneath. On dismissal, the curled up page unfurls itself back on top of the presented view. A view controller presented using this transition is itself prevented from presenting any additional view controllers. This transition style is supported only if the parent view controller is presenting a full-screen view and you use the UIModalPresentationStyle.fullScreen modal presentation style. Attempting to use a different form factor for the parent view or a different presentation style triggers an exception. You should file a bug report (at least against documentation !)
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’21
Reply to Putting a UITextInput and UITextView in a Container or UITableView?
If you want to create a Table view: create a custom cell File > New > File Cocoa Touch Class Give a name, subclass of UITableViewCell and create xib In the cell, include: UITextField for Title UITextView for Notes And connect to their IBOutlets: You will have to register the nib for the cell and proceed with the tableView use… But that may be a question in a new post.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Reply to Change in Watch 7 in rounded corners of WKInterfaceLabel or WKInterfaceGroup
Got an answer to my bug report: Apple Watch Series 7 has more rounded corners that your interface will need to account for. You can apply additional padding to the label in WatchKit, or use the .scenePadding modifier in SwiftUI. For more information please see the “Meet Apple Watch Series 7” Tech Talk on developer.apple.com: https://developer.apple.com/videos/play/tech-talks/10884 I could not find the WatchKit equivalent of SwiftUI .scenePadding modifier. So, I solved problem by testing if Watch7 (testing values of WKInterfaceDevice.current().screenBounds). private func isWatchSeries7() -> Bool { let watch = WKInterfaceDevice.current() let scale = watch.screenScale let size = watch.screenBounds.size let watch7_41 = scale >= 2.0 && size == CGSize(width: 176, height: 215) let watch7_45 = scale >= 2.0 && size == CGSize(width: 198, height: 242) return watch7_41 || watch7_45 } Of course I'll have to adapt for Series 8. If Watch 7, I adjust insets (group is the WKInterfaceGroup):         if isWatchSeries7() { // 4.11.2021             group.setContentInset(UIEdgeInsets(top: 0, left: 2, bottom: 0, right: 0))         } . There were other solutions to find watch model, but did not work on simulator for testing. And would require similar adaptation when Watch 8 comes out. https://stackoverflow.com/questions/49087330/how-to-determine-the-apple-watch-model
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to Hello i have a big problem i can't get around. error 90171
You have included something in the Bundle that you shouldn't have. Read this and tell if you get the explanation and solution: https://stackoverflow.com/questions/28621297/iphone-app-submitting-error-itms-90171-invalid-bundle-structure-cant-contain
Replies
Boosts
Views
Activity
Nov ’21
Reply to UIModalTransitionStyle.partialCurl fails when dismiss(animated:) called
Relevant modal presentation code in the second view controller Where do you dismiss the second VC ? In anycase, you should dismiss without animation: dismiss(animated: false)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Agreements
Could you give context ? There are tons of occasions to be asked agreement. Which one do you mean ? Show the screenshot of the request for agreement.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to LS Minimum System Version in build metadata in App Store Connect
LS stands for Launch Services. That's a MacOS Key: Specifies the minimum version of macOS required for the app to run. See LSMinimumSystemVersion for details. https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/20001431-113253
Replies
Boosts
Views
Activity
Nov ’21
Reply to pushViewController crashed but I don't know why
Please, show the code where it crashes and tell exactly where in code. Explain also the set up, maybe with a screen capture of the storyboard with the navigation controller and its children.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to LS Minimum System Version in build metadata in App Store Connect
Effectively, doc is a bit confusing. In Xcode 12.5 release notes, we see that Xcode developers were themselves a bit confused !: Resolved Issues Fixed an issue that could cause code completion, live issues, and other code-analysis features to produce incorrect results after you moved any of the source files of an open Xcode project. (57054858) Large workspaces now open faster. (70276306) Fixed an issue that could cause iOS 12.5, tvOS 14.5, watchOS 7.4, and earlier to set the minimum deployment target based on the app’s LSMinimumSystemVersion instead of its MinimumOSVersion. (76221112) Deprecations Don’t use the iOS MinimumOSVersion information property list key to declare the minimum release of macOS in which your app runs. Use LSMinimumSystemVersioninstead. (73890473) Future releases of macOS ignore the MinimumOSVersion key in Mac apps, including apps built with Mac Catalyst. Future releases of macOS use the LSMinimumSystemVersion key in iOS apps built with Xcode 12.5 or later. If an iOS app doesn’t include an LSMinimumSystemVersionkey, future releases of macOS compare the app’s MinimumOSVersion with the version of its Mac Catalyst runtime to determine compatibility. . Reading doc for MinimumOSVersion states: MinimumOSVersion The minimum version of the operating system required for the app to run in iOS, iPadOS, tvOS, and watchOS. Discussion The App Store uses this key to indicate the OS releases on which your app can run. Don’t specify MinimumOSVersion in the Info.plist file for apps built in Xcode. It uses the value of the Deployment Target in the General settings pane. For macOS, see LSMinimumSystemVersion.
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to add a file in the the app’s main bundle ?
Do you want to add files or to add extensions to files ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to SwiftUI Dynamic List
More on the use of Picker : You could have a Picker that you show and hide on purpose, below the Text: h t t p s : / / betterprogramming.pub/using-a-picker-in-a-swiftui-list-ff33b2ce979a
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to UIModalTransitionStyle.partialCurl fails when dismiss(animated:) called
But, sadly, it doesn't allow for the nice-looking transition from the second VC back to the first VC. You're right.That is clearly a bug as noted in the SO thread I indicated. I tried by setting all transitions to full screen, to na avail. Doc says it is possible (even though that creates many restrictions): UIModalTransitionStyle.partialCurl Discussion When the view controller is presented, one corner of the current view curls up to reveal the presented view underneath. On dismissal, the curled up page unfurls itself back on top of the presented view. A view controller presented using this transition is itself prevented from presenting any additional view controllers. This transition style is supported only if the parent view controller is presenting a full-screen view and you use the UIModalPresentationStyle.fullScreen modal presentation style. Attempting to use a different form factor for the parent view or a different presentation style triggers an exception. You should file a bug report (at least against documentation !)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to NavigationLink Issue on Device
What happens if you replace EmptyView() with Text("") for instance ? Do you then get the same result on iPhone and on simulator ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Putting a UITextInput and UITextView in a Container or UITableView?
If you want to create a Table view: create a custom cell File > New > File Cocoa Touch Class Give a name, subclass of UITableViewCell and create xib In the cell, include: UITextField for Title UITextView for Notes And connect to their IBOutlets: You will have to register the nib for the cell and proceed with the tableView use… But that may be a question in a new post.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to stop App Store Connect from silently auto-incrementing build numbers
If you declare your own build number in the project, it will be taken into account automatically: Define it here in General tab in Identity section: Then you will get it also here in Build Settings:
Replies
Boosts
Views
Activity
Nov ’21
Reply to "The bundle version, NNN, must be a higher than the previously uploaded version"
Did you increment your bundle version ? Have a look at this other thread: https://developer.apple.com/forums/thread/693862?answerId=693823022#693823022
Replies
Boosts
Views
Activity
Nov ’21
Reply to Change in Watch 7 in rounded corners of WKInterfaceLabel or WKInterfaceGroup
Got an answer to my bug report: Apple Watch Series 7 has more rounded corners that your interface will need to account for. You can apply additional padding to the label in WatchKit, or use the .scenePadding modifier in SwiftUI. For more information please see the “Meet Apple Watch Series 7” Tech Talk on developer.apple.com: https://developer.apple.com/videos/play/tech-talks/10884 I could not find the WatchKit equivalent of SwiftUI .scenePadding modifier. So, I solved problem by testing if Watch7 (testing values of WKInterfaceDevice.current().screenBounds). private func isWatchSeries7() -> Bool { let watch = WKInterfaceDevice.current() let scale = watch.screenScale let size = watch.screenBounds.size let watch7_41 = scale >= 2.0 && size == CGSize(width: 176, height: 215) let watch7_45 = scale >= 2.0 && size == CGSize(width: 198, height: 242) return watch7_41 || watch7_45 } Of course I'll have to adapt for Series 8. If Watch 7, I adjust insets (group is the WKInterfaceGroup):         if isWatchSeries7() { // 4.11.2021             group.setContentInset(UIEdgeInsets(top: 0, left: 2, bottom: 0, right: 0))         } . There were other solutions to find watch model, but did not work on simulator for testing. And would require similar adaptation when Watch 8 comes out. https://stackoverflow.com/questions/49087330/how-to-determine-the-apple-watch-model
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Beta test
Beta tester of what app ? To be OS beta tester, go there: https://beta.apple.com/sp/betaprogram
Replies
Boosts
Views
Activity
Nov ’21