SWRatingView
@IBDesignable
@objcMembers
open class SWRatingView : UIView
Undocumented
-
Undocumented
Declaration
Swift
open weak var delegate: SWRatingViewwDelegate?
-
Array of empty image views
Declaration
Swift
private var emptyImageViews: [UIImageView]
-
Array of full image views
Declaration
Swift
private var fullImageViews: [UIImageView]
-
Sets the empty image (e.g. a star outline)
Declaration
Swift
@IBInspectable open var emptyImage: UIImage? { get set }
-
Sets the full image that is overlayed on top of the empty image. Should be same size and shape as the empty image.
Declaration
Swift
@IBInspectable open var fullImage: UIImage? { get set }
-
Sets the empty and full image view content mode.
Declaration
Swift
open var imageContentMode: UIViewContentMode
-
Minimum rating.
Declaration
Swift
@IBInspectable open var minRating: Int { get set }
-
Max rating value.
Declaration
Swift
@IBInspectable open var maxRating: Int { get set }
-
Minimum image size.
Declaration
Swift
@IBInspectable open var minImageSize: CGSize
-
Set the current rating.
Declaration
Swift
@IBInspectable open var rating: Double { get set }
-
Sets whether or not the rating view can be changed by panning.
Declaration
Swift
@IBInspectable open var editable: Bool
-
Undocumented
See moreDeclaration
Swift
@objc public enum FloatRatingViewType : Int
-
Float rating view type
Declaration
Swift
@IBInspectable open var type: SWRatingView.FloatRatingViewType
-
Undocumented
Declaration
Swift
required override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
private func initImageViews()
-
Undocumented
Declaration
Swift
private func removeImageViews()
-
Undocumented
Declaration
Swift
private func refresh()
-
Undocumented
Declaration
Swift
private func sizeForImage(_ image: UIImage, inSize size: CGSize) -> CGSize
-
Undocumented
Declaration
Swift
private func updateLocation(_ touch: UITouch)
-
Undocumented
Declaration
Swift
override open func layoutSubviews()
-
Undocumented
Declaration
Swift
override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?)