Post

Replies

Boosts

Views

Activity

Reply to Cloudkit - Service Unavailable (6/2022) Request failed with http status code 503
At last my problem got resolved. I have figured out that my app identifier has 2 iCloud containers attached with. I removed the iCloud container which was not in use. Steps to edit iCloud container. Go to your developer account Certificates, IDs & Profiles Identifiers Select your app's identifier iCloud > Edit Container Choose the correct iCloud container This did solve my problem. Hope it works for you too.
Dec ’21
Reply to Service Unavailable Error on all CloudKit queries, HTTP 503, CloudKit error code 6
I had the similar issue. I have figured out that my app identifier has 2 iCloud containers attached with. I removed the iCloud container which was not in use. Steps to edit iCloud container. Go to your developer account Certificates, IDs & Profiles Identifiers Select your app's identifier iCloud > Edit Container Choose the correct iCloud container This did solve my problem. Hope it works for you too.
Dec ’21
Reply to NSCollectionView cell layout animation
I tried both the ways, but it didn't workoption 1:func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> NSSize { if let selectedRow = selectedRow { if selectedRow == indexPath.item { CATransaction.begin() let animation = CABasicAnimation(keyPath: "transform.scale.y") animation.duration = 3.0 animation.fromValue = 71 animation.toValue = 571 collectionView.item(at: indexPath)?.view.layer?.add(animation, forKey: "transform.scale.y") CATransaction.commit() return NSSize(width: collectionView.bounds.width, height: 571) } } return NSSize(width: collectionView.bounds.width, height: 71) }option 2:func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) { if let indexPath = indexPaths.first { if self.selectedRow == indexPath.item { self.selectedRow = nil } else { self.selectedRow = indexPath.item } if let cell = collectionView.item(at: selectedRow!) { CATransaction.begin() let animation = CABasicAnimation(keyPath: "transform.scale.y") animation.duration = 2.0 animation.fromValue = 71 animation.toValue = 571 cell.view.layer?.add(animation, forKey: "transform.scale.y") CATransaction.commit() } } }
Dec ’19