fix redudant public

This commit is contained in:
Paul Zabelin
2019-04-09 01:18:33 -07:00
parent 49c058a54c
commit 92da0f2525
3 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import UIKit
import QuartzCore
public extension UIView {
public func resetAnchorPoint() {
func resetAnchorPoint() {
let rect = frame
layer.anchorPoint = CGPoint.zero
frame = rect

View File

@@ -2,7 +2,7 @@ import UIKit
import QuartzCore
public extension UIView {
public func resetAnchorPoint() {
func resetAnchorPoint() {
let rect = frame
layer.anchorPoint = CGPoint.zero
frame = rect

View File

@@ -15,7 +15,7 @@ public extension Perspective {
- parameter bottomLeft: bottom left corner
- parameter bottomRight: bottom right corner
*/
public convenience init(_ topLeft: CGPoint, _ topRight: CGPoint, _ bottomLeft: CGPoint, _ bottomRight: CGPoint) {
convenience init(_ topLeft: CGPoint, _ topRight: CGPoint, _ bottomLeft: CGPoint, _ bottomRight: CGPoint) {
self.init(.init(topLeft, topRight, bottomLeft, bottomRight))
}
/**
@@ -23,7 +23,7 @@ public extension Perspective {
- parameter points: corner points, must be size 4
*/
public convenience init(_ points: [CGPoint]) {
convenience init(_ points: [CGPoint]) {
self.init(.init(points))
}
/**
@@ -31,7 +31,7 @@ public extension Perspective {
- parameter rect: defines the corners
*/
public convenience init(_ rect: CGRect) {
convenience init(_ rect: CGRect) {
self.init(.init(rect))
}
@@ -41,7 +41,7 @@ public extension Perspective {
- parameter destination: perspective to transform to
- returns: tranformation matrix from this perspective to destination
*/
public func projectiveTransform(destination: Perspective) -> CATransform3D {
func projectiveTransform(destination: Perspective) -> CATransform3D {
return .init(projection(to: destination).to3d())
}
}