TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.3k forks source link

References in single file in texture not found, other references are OK. #2051

Open snafupatton opened 2 years ago

snafupatton commented 2 years ago

I have included the Pod Texture in my xcode project. I am getting errors for one file in the module but not others. I get unresolved references to types and classes. But I don't get this in other files in Texture. And these are ussages from the same file referencing the Texture module. I have Import AsyncDisplayKit at the top of the file and it does not help.

What is driving me nuts is that all references are being found except the ASVideo Classes and types.

Is there file level control somewhere in Xcocde for Pod inclusion?

In the following code: ASVideoPlayerNodeDelegate => Cannot find Type ASVideoPlayerNodeDelegate in scope ASVideowPlayerNode => Cannot Find Type ASVideoPlayerNode in scope ASVideoPlayerNode => Cannot find ASVideoPlayerNode in scope

Yet I get no compileer error on AVAsset which is in a different file in the same module (Texture)

mport UIKit import AsyncDisplayKit

class GalleryVideoCollectionCell: UICollectionViewCell,ASVideoPlayerNodeDelegate{ <= Cannot find in scope

var videoView : ASVideoPlayerNode!  <= Cannot find in scope

override init(frame: CGRect) {
    super.init(frame: frame)
    videoView = ASVideoPlayerNode()  <= Cannot find in scope
    videoView.frame = self.bounds
    videoView.controlsDisabled = false
    videoView.shouldAutoPlay = false
    videoView.delegate = self

    self.contentView.addSubview(videoView.view)

}

required init?(coder aDecoder: NSCoder) {
    super.init(coder: aDecoder)
}

func configureVideo(url : String){
    if let temp = URL(string: url){
        videoView.asset = AVAsset(url: temp)  <= This is ok
        videoView.shouldAutoPlay = false
    }
}

override func layoutSubviews() {
    super.layoutSubviews()
    self.videoView.frame = self.bounds
}

}