• Stars
    star
    174
  • Rank 219,104 (Top 5 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

You can change any of the following properties right in the interface builder:

Properties

And see the result right away:

RatingView

To add RatingView to your Storyboard/.xib file just drag a generic UIView from palette, then in "Custom Class" section of identity inspector set class to RatingView

Installation

Carthage

  • cd to your project folder
  • touch Cartfile (if you don't have one yet)
  • nano Cartfile
  • put github "peterprokop/StarryStars" == 2.0.0 into Cartfile
  • Save it: ctrl-x, y, enter
  • Run carthage update
  • Copy framework from Carthage/Build/iOS to your project
  • Make sure that framework is added in Embedded Binaries section of your target (or else you will get dyld library not loaded referenced from ... reason image not found error)
  • Add import StarryStars on top of your view controller's code

Manual

Just clone and add StarryStars directory to your project.

Cocoapods

  • Make sure that you use latest stable Cocoapods version: pod --version
  • If not, update it: sudo gem install cocoapods
  • pod init in you project root dir
  • nano Podfile, add:
pod 'StarryStars', '~> 2.0.0'
use_frameworks! 
  • Save it: ctrl-x, y, enter
  • pod update
  • Open generated .xcworkspace
  • Don't forget to import StarryStars: import StarryStars!

Requirements

  • iOS 10.0+
  • Xcode 10.0+
  • Swift 5.0 (for older versions, see swift-2.2 branch)

Usage from code

Swift:

let rvRightToLeft = RatingView()

rvRightToLeft.frame = view.bounds

view.addSubview(rvRightToLeft)
rvRightToLeft.editable = true
rvRightToLeft.delegate = self

// RatingView will respect setting this property
rvRightToLeft.semanticContentAttribute = .forceRightToLeft

Objective C:

RatingView* rvRightToLeft = [[RatingView alloc] init];

rvRightToLeft.frame = self.view.bounds;

[self.view addSubview:rvRightToLeft];
rvRightToLeft.editable = YES;
rvRightToLeft.delegate = self;

// RatingView will respect setting this property
rvRightToLeft.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft;

Other Projects

SwiftOverlays - Swift GUI library for displaying various popups and notifications.

More Repositories

1

SwiftOverlays

SwiftOverlays is a Swift GUI library for displaying various popups and notifications
Swift
631
star
2

SwiftConcurrentCollections

Swift Concurrent Collections
Swift
47
star
3

ReactNativeGoogleMaps

This is an example of google maps sdk integration for react-native project.
Objective-C
46
star
4

PPSwiftGifs

PPSwiftGifs provides a convenient way to show animated GIF images as a part of iOS GUI.
Swift
34
star
5

Gormen

This repository contains algorithms from book "Introduction to Algorithms" by Thomas H. Cormen implemented in Go programming language
Go
29
star
6

AlertyAlert

AlertyAlert is a nice and fluffy iOS alert library for all your alerty needs
Swift
21
star
7

Bogracz

Bogracz is dependency injection manager with some desirable properties like thread safety and support for type-safe arguments
Swift
7
star
8

CubicCube

CubicCube is a Swift GUI library for embedding view controllers on faces of cube (well, technically it's a parallelepiped, but we'll call it a cube)
Swift
5
star
9

CheeseEngine

Scala
4
star
10

RecommendyRecommender

RecommendyRecommender is a simple Collaborative filtering/recommender engine written in Swift
Swift
3
star
11

ConnectionAwareVC

UIViewController subclass which shows user notification if internet connection is lost
Swift
2
star
12

bicyclotron

Here be bicycles
JavaScript
1
star
13

SwiftDB

Toy Database
Swift
1
star
14

llvm-tutorial-plain-c

LLVM tutorial for Kaleidoscope rewritten in plain c
C
1
star
15

PPSmartJumpingController

This example solves common task of displaying similar items in UIScrollView feed (you can read more at homepage URL)
1
star
16

PPRatingBar

PPRatingBar adds Android rating bar functionality to iOS
Objective-C
1
star
17

Allocators

Playing with allocators
C++
1
star
18

GraphyGraph

Swift
1
star
19

Woof-engine

This is a little example, written in python for google app engine that allows users to upload photos, saves them in blobstorage and outputs them on webpage or via RESTful API in JSON format. It has nothing to do with website named Woof.cc, nothing at all
Python
1
star