Wednesday, October 14, 2026
HomeiOS Developmentios - Tips on how to show whole score for a product...

ios – Tips on how to show whole score for a product utilizing Cosmos cocoa pod?

[ad_1]

//That is the place I declare a score view for the cosmos the place folks can work together with 5 stars and supply a score. I then save these scores to Firebase. I’m not certain about how one can show the full scores of the customers. I’d recognize some assist.

non-public lazy var ratingsView: CosmosView = {
    var view = CosmosView()
    view.settings.filledImage = #imageLiteral(resourceName: "Picture-4").withRenderingMode(.alwaysOriginal)
    view.settings.emptyImage = #imageLiteral(resourceName: "Picture-6").withRenderingMode(.alwaysOriginal)
    view.settings.totalStars = 5
    view.settings.starSize = 20
    view.settings.starMargin = 3.3
    view.settings.fillMode = .exact
    view.settings.updateOnTouch = true
    view.score = 0.0
    view.textual content = "(123)"
    
    view.didFinishTouchingCosmos =  { score in
        guard let discoverUid = Auth.auth().currentUser?.uid else { return }
        COLLECTION_RATINGS.doc(discoverUid).assortment("disc-ratingg").doc(discoverUid).setData([:])
    }
    view.didTouchCosmos = { score in
        guard let discoverUid = Auth.auth().currentUser?.uid else { return }
        COLLECTION_RATINGS.doc(discoverUid).assortment("disc-ratingg").doc(discoverUid).setData([:])
        
    }
    view.settings.disablePanGestures = true
    return view
    
}()

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments