'LogoGif loopcount extra

Hello I keep getting "Extra argument 'loopCount' in call

I don't quite know what I'm doing wrong. I'm new to this

import UIKit

class LogoAnimationView: UIView {
    
    let logoGifImageView = UIImageView(gifImage: UIImage(contentsOfFile: "you!.gif"), loopCount: 1)

    override init(frame: CGRect) {
          super.init(frame: frame)
          commonInit()
      }
    
    required init?(coder aDecoder: NSCoder) {
            super.init(coder: aDecoder)
            commonInit()
        }

        private func commonInit() {
            backgroundColor = UIColor(red:0.95, green:0.96, blue:0.92, alpha:1.0)
            addSubview(logoGifImageView)
            addSubview(logoGifImageView)
                    logoGifImageView.translatesAutoresizingMaskIntoConstraints = false
                    logoGifImageView.centerXAnchor.constraint(equalTo: centerXAnchor).isActive = true
                    logoGifImageView.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true
                    logoGifImageView.widthAnchor.constraint(equalToConstant: 280).isActive = true
                    logoGifImageView.heightAnchor.constraint(equalToConstant: 108).isActive = true


}

}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source