(swift) does not recognize core Apple foundational libraries
See original GitHub issueI found this while writing this on Stack Overflow. I’m not sure what the root of the problem is, but I’m guessing it starts in the function signature. Here’s the code:
func configuredGridCell() -> UICollectionView.CellRegistration<UICollectionViewCell, Emoji> {
return UICollectionView.CellRegistration<UICollectionViewCell, Emoji> { (cell, indexPath, emoji) in
var content = UIListContentConfiguration.cell()
content.text = emoji.text
content.textProperties.font = .boldSystemFont(ofSize: 38)
content.textProperties.alignment = .center
content.directionalLayoutMargins = .zero
cell.contentConfiguration = content
var background = UIBackgroundConfiguration.listPlainCell()
background.cornerRadius = 8
background.strokeColor = .systemGray3
background.strokeWidth = 1.0 / cell.traitCollection.displayScale
cell.backgroundConfiguration = background
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (12 by maintainers)
Top Results From Across the Web
Swift can't find the Entity Core Data - Apple Developer
I have downloaded your GitHub project and tried to build it, and showed Succeeded. Some classes (not structs) representing Core Data entity are...
Read more >Can't find CoreFoundation - Core Libraries - Swift Forums
Hi all, Before jumping over to try using Swift on Linux, I've compiled Swift on MacOS and I can see that CoreFoundation is...
Read more >Swift foundation vs standard library? - Stack Overflow
My understanding is that Swift standard library is low level library that are support for core data types, array, etc... written in swift....
Read more >Xcode Build Settings
This setting is deprecated as of Xcode 8.3 and may not be supported in future ... For Swift, this enables support for library...
Read more >Kotlin/Native as an Apple framework – tutorial
Objective-C frameworks and libraries can be used in Kotlin code. ... In this tutorial, you will see how to use Kotlin/Native code from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And if you happened to have the time: https://github.com/highlightjs/highlight.js/issues/2819 😃
@AustinConlon Want to take a pass at making a PR to pull over that rule from Objective-C, and balance the languages out?