Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #40 from morizotter/update-comment
Browse files Browse the repository at this point in the history
Update comment
  • Loading branch information
morizotter committed May 6, 2015
2 parents 36771fb + e30c9fc commit 0e735b0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
21 changes: 20 additions & 1 deletion Pod/Classes/TouchVisualizerConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@
import Foundation

public struct TouchVisualizerConfig {

/**
Color of touch points.
*/
public var color: UIColor = {
UIColor(red: 52/255.0, green: 152/255.0, blue: 219/255.0, alpha: 0.8)
}()

/**
Image of touch points.
*/
public var image: UIImage = {
let rect = CGRectMake(0, 0, 60.0, 60.0);
UIGraphicsBeginImageContextWithOptions(rect.size, false, 0)
Expand All @@ -23,9 +31,20 @@ public struct TouchVisualizerConfig {
image.imageWithRenderingMode(.AlwaysTemplate)
return image
}()

/**
Default touch point size. If `showsTouchRadius` is enabled, this value is ignored.
*/
public var defaultSize = CGSize(width: CGFloat(60.0), height: CGFloat(60.0))

/**
Shows touch duration.
*/
public var showsTimer = false
// Shows touch radius. It doesn't work on simulator because it is not possible to read touch radius on it. Please test it on device.

/**
Shows touch radius. It doesn't work on simulator because it is not possible to read touch radius on it. Please test it on device.
*/
public var showsTouchRadius = false

public init() {}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Effective presentation with TouchVisualizer! Main features are below.
- Shows touch duration.
- You can change colors and images of finger points.

![top](https://github.com/morizotter/TouchVisualizer/blob/master/top.png)
![top](https://raw.githubusercontent.com/morizotter/TouchVisualizer/master/top.png)

Catch the image with GIF!

![gif](https://github.com/morizotter/TouchVisualizer/blob/master/presentation.gif)
![gif](https://raw.githubusercontent.com/morizotter/TouchVisualizer/master/presentation.gif)

Let's give a presentation effectively

Expand Down Expand Up @@ -80,7 +80,7 @@ TouchVisualizer.stop()

## Document

- [How to take an iOS screen movie](doc/take_a_movie.md)
- [How to take an iOS screen movie](misc/take_a_movie.md)

## Contribution

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit 0e735b0

Please sign in to comment.