question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(swift) does not recognize core Apple foundational libraries

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
joshgoebelcommented, Nov 2, 2020

And if you happened to have the time: https://github.com/highlightjs/highlight.js/issues/2819 😃

1reaction
joshgoebelcommented, Oct 27, 2020

@AustinConlon Want to take a pass at making a PR to pull over that rule from Objective-C, and balance the languages out?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found