Post

Replies

Boosts

Views

Activity

Reply to Swift, iOS15, UIKit, CollectionView header issue
This here strangely solved it for me: lazy var collectionView: UICollectionView = { let collectionView = UICollectionView(/**/) // ...  collectionView.register(HeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: HeaderView.reuseId)  collectionView.register(HeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter, withReuseIdentifier: HeaderView.reuseId)   // .... return collectionView }() And where I reuse the theader: func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {     let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: HeaderView.reuseId, for: indexPath) as! HeaderView // ... update header with data return header } In my collectionView I am only using headers. No footers at all.
Topic: Community SubTopic: Apple Developers Tags:
Sep ’21
Reply to Disable new tab bar look
To get the old look just call this ... UserDefaults.standard.register(defaults: [ "UseFloatingTabBar": false, ]) ` .... in AppDelegate's didFinishLaunchingWithOptions.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to iPhone is busy: Making Apple Watch ready for development
Bravo! Turning off Bluetooth on my Apple watch solved it for me. Who needs Bluetooth in 2022 anyway?
Replies
Boosts
Views
Activity
Apr ’22
Reply to Swift, iOS15, UIKit, CollectionView header issue
This here strangely solved it for me: lazy var collectionView: UICollectionView = { let collectionView = UICollectionView(/**/) // ...  collectionView.register(HeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: HeaderView.reuseId)  collectionView.register(HeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter, withReuseIdentifier: HeaderView.reuseId)   // .... return collectionView }() And where I reuse the theader: func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {     let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: HeaderView.reuseId, for: indexPath) as! HeaderView // ... update header with data return header } In my collectionView I am only using headers. No footers at all.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Sep ’21