Most likely you want to register xib for the cell and not for the view itself:
mediaProfileCollectionView.register(
UINib(nibName: "MediaProfileCollectionViewCell", bundle: nil),
forCellWithReuseIdentifier: "MediaProfileCollectionViewCell"
)
More Related Contents:
- How do I write dispatch_after GCD in Swift 3, 4, and 5?
- Using SecRandomCopyBytes in Swift
- Swift – Create charts(bar, line, pie, column) programatically [closed]
- iOS 8 UITableView separator inset 0 not working
- Importing CommonCrypto in a Swift framework
- Customize UITableView header section
- Subclass UIApplication with Swift
- SwiftUI | Using onDrag and onDrop to reorder Items within one single LazyGrid?
- Adding a view controller as a subview in another view controller
- How to make an HTTP request + basic auth in Swift
- Picking two different images in the same view controller using imagePickerController in Swift
- Exhaustive condition of switch case in Swift
- How to check if a view controller is presented modally or pushed on a navigation stack?
- iOS 11 disable password autofill accessory view option?
- how to pass multiple values with a notification in swift
- How to convert a double into a byte array in swift?
- Default keyword in Swift parameter
- Setting tableHeaderView height dynamically
- Swift countElements() return incorrect value when count flag emoji
- Find the tangent of a point on a cubic bezier curve
- Add custom controls to AVPlayer in swift
- SwiftUI Landmarks App Tutorial Screen Navigates Back When Toggle Favorite
- iOS temporary folder location
- Change button background color using swift language
- Loading ViewController from xib file
- Accessing variables from another ViewController in Swift
- How to filter Firebase data in Swift?
- Duplicate Symbol Error in NSManagedObject Subclass
- Ambiguous use of subscript xcode 7.1
- SwiftUI: Error in dragging logic or is this a bug?