Skip to content

Commit

Permalink
remove unnecesary spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosypunto committed May 24, 2018
1 parent 2489d70 commit d9384dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Example/TheAnimationExample-iOS/ViewController.swift
Expand Up @@ -18,15 +18,15 @@ class ViewController: UIViewController {
super.viewDidLoad()
let size = CGSize(width: view.bounds.size.width,
height: view.bounds.size.width)

ConfigureCircleLayer: do {
let y = (view.bounds.height - size.height) / 2
circleLayer.frame = CGRect(x: 0, y: y, width: size.width, height: size.height)
circleLayer.fillColor = UIColor.green.cgColor
circleLayer.needsDisplayOnBoundsChange = true
view.layer.addSublayer(circleLayer)
}

Animation: do {
let startSize = CGSize(width: 100, height: 100)
let inset = (size.width / 2) - (startSize.width / 2)
Expand Down
8 changes: 4 additions & 4 deletions Example/TheAnimationExample-macOS/ViewController.swift
Expand Up @@ -12,7 +12,7 @@ import TheAnimation
import CoreGraphics

extension NSBezierPath {

var cgPath: CGPath {
var immutablePath: CGPath
let numElements = elementCount
Expand Down Expand Up @@ -46,14 +46,14 @@ extension NSBezierPath {
}

class ViewController: NSViewController {

let circleLayer = CAShapeLayer()

override func viewDidLoad() {
super.viewDidLoad()
let size = CGSize(width: view.bounds.size.width,
height: view.bounds.size.width)

ConfigureCircleLayer: do {
let y = (view.bounds.height - size.height) / 2
circleLayer.frame = CGRect(x: 0, y: y, width: size.width, height: size.height)
Expand All @@ -66,7 +66,7 @@ class ViewController: NSViewController {
fatalError("view.layer is nil in \(#file)_\(#function)_\(#line)")
}
}

Animation: do {
let startSize = CGSize(width: 100, height: 100)
let inset = (size.width / 2) - (startSize.width / 2)
Expand Down
8 changes: 4 additions & 4 deletions Example/TheAnimationExample-tvOS/ViewController.swift
Expand Up @@ -11,22 +11,22 @@ import QuartzCore.CoreAnimation
import TheAnimation

class ViewController: UIViewController {

let circleLayer = CAShapeLayer()

override func viewDidLoad() {
super.viewDidLoad()
let size = CGSize(width: view.bounds.size.width,
height: view.bounds.size.width)

ConfigureCircleLayer: do {
let y = (view.bounds.height - size.height) / 2
circleLayer.frame = CGRect(x: 0, y: y, width: size.width, height: size.height)
circleLayer.fillColor = UIColor.green.cgColor
circleLayer.needsDisplayOnBoundsChange = true
view.layer.addSublayer(circleLayer)
}

Animation: do {
let startSize = CGSize(width: 100, height: 100)
let inset = (size.width / 2) - (startSize.width / 2)
Expand Down

0 comments on commit d9384dc

Please sign in to comment.