//
//  OLNLogoView.swift
//  LoginScreen
//
//  Created by Oleksandr Nechet on 10.11.15.
//  Copyright 漏 2015 Oleksandr Nechet. All rights reserved.
//

import UIKit

@IBDesignable
class OLNLogoView: UIView {
    override func drawRect(rect: CGRect) {
        super.drawRect(rect)
        let w = rect.width
        let h = rect.height
        let ctx = UIGraphicsGetCurrentContext()
        CGContextSetLineWidth(ctx, 1)
        CGContextSetStrokeColorWithColor(ctx, UIColor.whiteColor().CGColor)
        CGContextAddArc(ctx, w/2, h/2, min(w/2, h/2), CGFloat(Float(M_PI) * 0.6), -CGFloat(Float(M_PI) * 0.6), 0);
        CGContextAddArc(ctx, w/2, h/2, min(w/2, h/2), CGFloat(Float(M_PI) * 0.4), -CGFloat(Float(M_PI) * 0.4), 1);
        CGContextStrokePath(ctx)
    }
}
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com