Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. FloatRatingView

FloatRatingView

MITSwift4.0

A customizable iOS rating control written in Swift that supports whole, half, or floating point values.

Visit WebsiteGitHubGitHub
545 stars97 forks0 contributors

What is FloatRatingView?

FloatRatingView is an open-source iOS UI component written in Swift that provides a customizable star rating control. It solves the problem of implementing precise rating inputs by supporting whole, half, or floating point values, which many existing controls lack. Developers can easily integrate it into their apps to collect detailed user ratings.

Target Audience

iOS developers building apps that require user rating systems, such as e-commerce, review platforms, or media applications where precise feedback is valuable.

Value Proposition

It offers a straightforward, reusable solution with floating point support that isn't commonly available in other rating controls, saving development time and providing greater flexibility in rating precision.

Overview

Whole, half or floating point ratings control written in Swift

Use Cases

Best For

  • Adding star ratings to product review sections in e-commerce apps
  • Implementing user feedback systems with decimal precision
  • Building media apps that require detailed content ratings
  • Creating custom review platforms where users can give fractional ratings
  • Enhancing iOS apps with visually consistent, customizable rating controls
  • Supporting Objective-C projects needing modern Swift UI components

Not Ideal For

  • Apps built exclusively with SwiftUI, as it relies on UIKit and nib/xib files
  • Projects requiring highly animated or interactive rating controls beyond static star displays
  • Teams that need rating components with built-in server synchronization or multi-symbol support

Pros & Cons

Pros

Floating Point Precision

Supports decimal ratings like 3.7 or 4.5, addressing a gap in many existing controls, as highlighted in the key features.

Easy Customization

Allows setting custom empty and full star images to match app design, mentioned in the README for seamless integration.

Dual Initialization Methods

Can be created programmatically or via Interface Builder, offering flexibility for different iOS development workflows.

Objective-C Compatibility

Usable in Objective-C projects with proper Swift settings, making it versatile for mixed-language environments.

Efficient Mask-Based Rendering

Uses CALayer masks for precise fractional star display, ensuring accurate visuals without performance issues.

Cons

UIKit Dependency

Limited to UIKit-based projects, not compatible with SwiftUI, restricting use in modern iOS development trends.

Basic Feature Set

Lacks advanced features like animations or support for non-star symbols, making it less suitable for interactive apps.

Version Fragmentation

Different pod versions for Swift 2.3 and Swift 5.0 indicate potential maintenance issues and breaking changes.

Objective-C Setup Complexity

Integrating into Objective-C requires additional build settings and imports, which can be error-prone.

Frequently Asked Questions

Quick Stats

Stars545
Forks97
Contributors0
Open Issues6
Last commit3 years ago
CreatedSince 2014

Tags

#cocoa-touch#ios#custom-views#ui-components#cocoapods#objective-c-compatible#swift

Built With

S
Swift

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 18 hours ago

Related Projects

SkeletonViewSkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting

Stars12,886
Forks1,125
Last commit1 month ago
MaterialMaterial

A UI/UX framework for creating beautiful applications.

Stars12,005
Forks1,257
Last commit4 years ago
NVActivityIndicatorViewNVActivityIndicatorView

A collection of awesome loading animations

Stars10,706
Forks1,158
Last commit4 months ago
MacawMacaw

Powerful and easy-to-use vector graphics Swift library with SVG support

Stars6,046
Forks569
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub