A simple and configurable rating/favorite view.

Overview

ImageRating

A simple and configurable rating/favorite view.

ImageRating will display a sequence of SFSymbols from 0-maxImages in half or whole increments simply by tapping the view. The simplest way to display the view is as follows:

import ImageRating
import SwiftUI

struct ContentView: View {
    
    @State private var value = 2.5
    
    var body: some View {
        ImageRatingView(value: $value)
            .id(value)
    }
}

This will show two full gold stars, one half gold star and 2 empty gray stars.

The following parameters can be added to the view call to further customize its appearance.

  • fontSize (defaults to 17.0)

  • displayOnly (defaults to false, true disables the onTap gesture that allows you to change the rating)

  • maxImages (defaults to 5)

  • fullImageName (defaults to "star.fill")

  • fullColor (defaults to gold)

  • allowHalf (defaults to true, false will ignore the decimal part of a rating)

  • halfImageName (defaults to "star.lefthalf.fill")

  • showEmpty (defaults to true, false will hide empty stars)

  • emptyImageName (defaults to "star")

  • emptyColor (defaults to lightGray)

Its easy to make this into a "favorites picker" as well.

import StarRating
import SwiftUI

struct ContentView: View {
    
    @State private var value = 0.0
    
    var body: some View {
        ImageRatingView(value: $value,
                        maxImages: 1,
                        fullImageName: "heart.fill",
                        fullColor: Color.red,
                        allowHalf: false,
                        emptyImageName: "heart")
            .id(value)
    }
}
You might also like...
This is a basic twitter app to view, compose, favorite, and retweet tweets.
This is a basic twitter app to view, compose, favorite, and retweet tweets.

Twitter - Part II This is a basic twitter app to view, compose, favorite, and retweet tweets. Time spent: 6 hours spent in total User Stories The foll

A basic twitter app to view, compose, favorite, and retweet tweets

A basic twitter app to view, compose, favorite, and retweet tweets

TraceLog is a highly configurable, flexible, portable, and simple to use debug logging system for Swift and Objective-C applications running on Linux, macOS, iOS, watchOS, and tvOS.

Please star this github repository to stay up to date. TraceLog Introduction TraceLog is a highly configurable, flexible, portable, and simple to use

Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.

kishikawakatsumi/SpreadsheetView has moved! It is being actively maintained at bannzai/SpreadsheetView. This fork was created when the project was mov

Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.

kishikawakatsumi/SpreadsheetView has moved! It is being actively maintained at bannzai/SpreadsheetView. This fork was created when the project was mov

Card Decks is a small utility application for your iPhone, iPod touch and iPad which brings you simple, configurable, colored, multi-line text cards that are grouped into card decks

Card Decks is a small utility application for your iPhone, iPod touch and iPad which brings you simple, configurable, colored, multi-line text cards that are grouped into card decks.

๐ŸŽฎ Favorite your games filter and see the upcoming games and ! Swift + Combine = ๐Ÿ’œ Hacktoberfest ๐ŸŽƒ ๐Ÿ‘พ
๐ŸŽฎ Favorite your games filter and see the upcoming games and ! Swift + Combine = ๐Ÿ’œ Hacktoberfest ๐ŸŽƒ ๐Ÿ‘พ

โœจ Revill is App to list games and search best games โœจ Design in Swift UI + Combine โœจ The idea is develop this app in Hacktober Fest Expected To Do Des

Allows users to pull in new song releases from their favorite artists and provides users with important metrics like their top tracks, top artists, and recently played tracks, queryable by time range.

Spotify Radar Spotify Radar is an iOS application that allows users to pull in new song releases from their favorite artists and provides users with i

Gamer-s-Collection - An app for searching and saving favorite games using rawg.io api and Core Data
Gamer-s-Collection - An app for searching and saving favorite games using rawg.io api and Core Data

Gamer-s-Collection - An app for searching and saving favorite games using rawg.io api and Core Data

A Currency Converter & Calculator IOS application to check, convert and calculate to popular currencies to your favorite ones.
A Currency Converter & Calculator IOS application to check, convert and calculate to popular currencies to your favorite ones.

A Currency Converter & Calculator IOS application to check, convert and calculate to popular currencies to your favorite ones.

๐Ÿ“น Your next favorite image and video picker
๐Ÿ“น Your next favorite image and video picker

Description We all love image pickers, don't we? You may already know of ImagePicker, the all in one solution for capturing pictures and selecting ima

JSONExport is a desktop application for Mac OS X which enables you to export JSON objects as model classes with their associated constructors, utility methods, setters and getters in your favorite language.
JSONExport is a desktop application for Mac OS X which enables you to export JSON objects as model classes with their associated constructors, utility methods, setters and getters in your favorite language.

JSONExport JSONExport is a desktop application for Mac OS X written in Swift. Using JSONExport you will be able to: Convert any valid JSON object to a

A Weather information can be searched by a city name and added into a favorite list

A Weather information can be searched by a city name and added into a favorite list. The list can be refreshed with pull to refresh. Move func exists.

iOS Trakt Client - Keep track of your favorite TV shows and movies on your iPhone. (Under development)

CouchTracker Keep track of your favorite movies and tv shows on your iPhone Setup for development You will need Xcode 11.2.1 Swift 5.1.2 Run the follo

Find and save your favorite places!

Reqs Recommendation app to search for, organize, and save the places you love. TODOs: Implement UserDefaults for settings Complete annotation screen w

An app that displays tracks and albums of your favorite artist.
An app that displays tracks and albums of your favorite artist.

Tunely Description A basic iOS app written in Swift that displays tracks from the iTunes API. There are two tabs. The first shows a list of tracks. Cl

Forecast App is an ios application built on top of omdb movie api for batman lovers to see their favorite batman movies
Forecast App is an ios application built on top of omdb movie api for batman lovers to see their favorite batman movies

Catbon-Movie-App Forecast App is an ios application built on top of omdb movie api for batman lovers to see their favorite batman movies, users can al

Swift iOS app to track when your favorite tv show airs next ๐Ÿ“†
Swift iOS app to track when your favorite tv show airs next ๐Ÿ“†

Upcoming TV Swift iOS app to track when your favorite tv show airs next ๐Ÿ“† Requirements iOS 13 TMdB API key Credits TMdB Contact github.com/dkhamsing

It is a highly configurable iOS library which allows easy styling with built in styles as well as extra header and footer views so that you can make extremely unique alerts and action sheets.
It is a highly configurable iOS library which allows easy styling with built in styles as well as extra header and footer views so that you can make extremely unique alerts and action sheets.

๏ฃฟ CFAlertViewController CFAlertViewController is a library that helps you display and customise Alerts, Action Sheets, and Notifications on iPad and i

Owner
Ferdinand G Rios
iOS/Mac developer, photographer
Ferdinand G Rios
An emoji-liked rating view for iOS, implemented in Swift3.

TTGEmojiRate An emoji-liked rating view for iOS, implemented in Swift3. Android version: PeterSmileRate by SilicorniO. Great work ! :) Inspired by Rat

zekunyan 289 Jun 13, 2022
A star rating control for iOS/tvOS written in Swift

Cosmos, a star rating control for iOS and tvOS This is a UI control for iOS and tvOS written in Swift. It shows a star rating and takes rating input f

Evgenii Neumerzhitckii 2.1k Dec 28, 2022
StarryStars is iOS GUI library for displaying and editing ratings

StarryStars StarryStars is iOS GUI library for displaying and editing ratings Features StarryStars' RatingView is both IBDesignable and IBInspectable

Peter Prokop 175 Nov 19, 2022
Review page interaction - handy and pretty way to ask for review.

RPInteraction Overview Review page interaction - handy and pretty way to ask for review. Inspired by dribbble shot. Requirements iOS8 Installation RPI

Nurdaulet Bolatov 27 Jul 16, 2021
Simple star rating view for iOS written in Objective-C

HCSStarRatingView HCSStarRatingView is a UIControl subclass to easily provide users with a basic star rating interface. It supports all device resolut

Hugo Sousa 1.3k Dec 21, 2022
An emoji-liked rating view for iOS, implemented in Swift3.

TTGEmojiRate An emoji-liked rating view for iOS, implemented in Swift3. Android version: PeterSmileRate by SilicorniO. Great work ! :) Inspired by Rat

zekunyan 289 Jun 13, 2022
A simple star rating library for SwiftUI apps on macOS and iOS

DLDRating A simple star rating library for SwiftUI apps on macOS and iOS. Features Installation Usage Styling Credits DLDRating was made by Dionne Lie

null 1 Mar 6, 2022
A simple iOS app similar to iTunes where you can view details of your favorite movies, songs and audio books.

Popcorn Adventure This is an iOS app developed by Arthur Tristan M. Ramos who has taken the Appetiser iOS Coding Challenge. Design Pattern The design

Arthur Tristan M. Ramos 0 Dec 11, 2021
A star rating control for iOS/tvOS written in Swift

Cosmos, a star rating control for iOS and tvOS This is a UI control for iOS and tvOS written in Swift. It shows a star rating and takes rating input f

Evgenii Neumerzhitckii 2.1k Dec 28, 2022
Flix is a film rating application for iOS.

Flix is a film rating application for iOS.

Yijie Guo 0 Nov 20, 2021