Post

Replies

Boosts

Views

Activity

Reply to iOS 15 Gap between navigation bar and table view
From WWDC21, session: “What's new in UIKit“ (I'm pasting from the transcript) We have a new appearance for headers in iOS 15. For plain lists, section headers now display seamlessly in line with the content, and only display a visible background material when becoming pinned to the top as you scroll down. In addition, there's new padding inserted above each section header to visually separate the sections with this new design.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to iPad keyboard navigation: where to initialize UIFocusHaloEffect
I believe the best place to implement it is in the init of the cell class. Example: class GenericCell: UICollectionViewCell {     static let reuseIdentifier = "my-cell"     override var canBecomeFocused: Bool { true }     override init(frame: CGRect) {         super.init(frame: frame)         focusEffect = UIFocusHaloEffect() ...     } ... }
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to Modern UICollectionView: Best approach for static first cell?
Figured it out. My main mistake was using objects and not identifiers in UICollectionViewDiffableDataSource. When it's using identifiers, the data has to be prepared in CellRegistration. With an indexPath coming in, it's easy to remap what you're retrieving from FRC. Now that I've solved the problem, I've decided against the design pattern of static first cell on account that it goes out of sight for users browsing the collectionView. When the Add button is placed in UINavigationBar or the toolbar, however, it's always in sight.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to UICloudSharingController is broken and needs Apple's attention
iOS 15.1 RC, build 19B74 (Oct 18th 2021): Issue still not fixed, nor listed under known issues in release notes.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Best Practice? Core Data with CloudKit and unique elements
Looks like you could put NSUbiquitousKeyValueStore to good use. Start here: https://developer.apple.com/documentation/foundation/icloud/synchronizing_app_preferences_with_icloud
Replies
Boosts
Views
Activity
Oct ’21
Reply to UICloudSharingController is broken and needs Apple's attention
Still no joy with iOS 15.1 beta 4 (Oct 13th 2021). Issue not fixed, or listed under known issues in release notes.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to CoreData - Sum/Count a FetchRequest
To sum: let pointsFromEachTournament: [Int] = tournamentTop10.map { $0.point } let sumOfAllPoints: Int = pointsFromEachTournament.reduce(0, +) (please refer to documentation to learn more about map and reduce) To count: let numberOfTournaments = tournamentTop10.count
Replies
Boosts
Views
Activity
Oct ’21
Reply to CoreData to-Many relationship saving NSSet relationship property
You may want to try changing myList.mutableSetValue(forKey: "groceryItems").add(selectedGroceryItems) to myList.addToGroceryItems(selectedGroceryItems) which is a method that should have been synthesized for you based on your Core Data model. Just type myList.add and pick from Xcode's autocomplete.
Replies
Boosts
Views
Activity
Oct ’21
Reply to UICloudSharingController is broken and needs Apple's attention
@jonjudelson the controller is provided by the currently installed OS, no matter what your minimum deployment target is. So, no workarounds. We just have to find a way for Apple to hear us.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI and UICloudSharingController
Apple offers SwiftUI sample code that you can use in https://github.com/apple/cloudkit-sample-sharing
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS 15 Gap between navigation bar and table view
From WWDC21, session: “What's new in UIKit“ (I'm pasting from the transcript) We have a new appearance for headers in iOS 15. For plain lists, section headers now display seamlessly in line with the content, and only display a visible background material when becoming pinned to the top as you scroll down. In addition, there's new padding inserted above each section header to visually separate the sections with this new design.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Publish App with In App Purchase got Rejection
Hi, you should probably reply to Apple, describe what you did, attach up to date screenshots, and request phone support.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Widgets developed using WidgetKit not visible in WidgetGallery of simulators on M1 chip MacBook Pro
Try switching the run target to the widget and run that. Your "Run the application" suggests you skipped this step.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Publish App with In App Purchase got Rejection
Now that they are ready to submit, go back to the version details screen (first screenshot in your original post). In the section "In-app purchases" check that all the ones you wish to submit along with 1.0 are selected. And then submit for review.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Publish App with In App Purchase got Rejection
Have you provided all the necessary information for each IAP? It sounds like IAPs don't get included because of missing information. If that is so, go to In-app purchases > Manage, then click the name of (each) item to get to it's details screen, and fill out all the required information (and add screenshots of the IAP).
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to after published a swiftui,cloudkit,core data based app,found that cloudkit has repeat record name, and can not delete it.
It is not duplicate. The one in the second row is misspelled.
Replies
Boosts
Views
Activity
Aug ’21
Reply to iPad keyboard navigation: where to initialize UIFocusHaloEffect
I believe the best place to implement it is in the init of the cell class. Example: class GenericCell: UICollectionViewCell {     static let reuseIdentifier = "my-cell"     override var canBecomeFocused: Bool { true }     override init(frame: CGRect) {         super.init(frame: frame)         focusEffect = UIFocusHaloEffect() ...     } ... }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Modern UICollectionView: Best approach for static first cell?
Figured it out. My main mistake was using objects and not identifiers in UICollectionViewDiffableDataSource. When it's using identifiers, the data has to be prepared in CellRegistration. With an indexPath coming in, it's easy to remap what you're retrieving from FRC. Now that I've solved the problem, I've decided against the design pattern of static first cell on account that it goes out of sight for users browsing the collectionView. When the Add button is placed in UINavigationBar or the toolbar, however, it's always in sight.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21