Files
GitHawk/Classes/Views/UIImageView+Avatar.swift
Ryan Nystrom 8f88e430a9 Add and remove assignees (#1011)
* add and remove assignees

* add bottom view so there arent trailing separators
2017-11-20 17:22:31 -05:00

23 lines
539 B
Swift

//
// UIImageView+Avatar.swift
// Freetime
//
// Created by Ryan Nystrom on 11/19/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import UIKit
extension UIImageView {
func configureForAvatar() {
contentMode = .scaleAspectFill
backgroundColor = Styles.Colors.Gray.lighter.color
layer.cornerRadius = Styles.Sizes.avatarCornerRadius
layer.borderColor = Styles.Colors.Gray.light.color.cgColor
layer.borderWidth = 1.0 / UIScreen.main.scale
clipsToBounds = true
}
}