Timothy Bohls has been working in the technology industry since 2016. Timothy began their career at EviCode as a Software Developer. Timothy then moved to FlameSniffer, Inc. as a Senior Application Developer. Currently, they are the Head of the Information Technology Department at The Camera Division.
//
// UIView+Extension.swift
// swift-DYZB
//
// Created by chenrin on 2016/11/17.
// Copyright © 2016年 zhuoheng. All rights reserved.
//
import UIKit
extension UIView{
var x : CGFloat{
get{
return self.frame.origin.x
}
set{
var tempFrame : CGRect = self.frame
tempFrame.origin.x = newValue
self.frame = tempFrame
}
}
var y : CGFloat{
get{
return self.frame.origin.y
}
set{
var tempFrame : CGRect = self.frame
tempFrame.origin.y = newValue
self.frame = tempFrame
}
}
var width : CGFloat{
get{
return self.frame.size.width
}
set{
var tempFrame : CGRect = self.frame
tempFrame.size.width = newValue
self.frame = tempFrame
}
}
var height : CGFloat{
get{
return self.frame.size.height
}
set{
var tempFrame : CGRect = self.frame
tempFrame.size.height = newValue
self.frame = tempFrame
}
}
var size : CGSize{
get{
return self.frame.size
}
set{
var tempFrame : CGRect = self.frame
tempFrame.size = newValue
self.frame = tempFrame
}
}
var centerX : CGFloat{
get{
return self.center.x
}
set{
var tempCenter : CGPoint = self.center
tempCenter.x = newValue
self.center = tempCenter
}
}
var centerY : CGFloat{
Sign up to view 0 direct reports
Get started
This person is not in any teams