Code clean-up

This commit is contained in:
Raimund Wege committed 2016-07-05 15:18:41 +02:00
1 parent 0bc7e2b115
commit 376bcc2d34
1 file changed
+13 -9
@@ -2,8 +2,8 @@
// GPSAccuracyView.swift
// SAPTracker
//
// Created by computing on 11/12/14.
// Copyright (c) 2014 com.sap.sailing. All rights reserved.
// Created by Raimund Wege on 05.07.16.
// Copyright © 2016 com.sap.sailing. All rights reserved.
//
import UIKit
@@ -29,24 +29,28 @@ class GPSAccuracyView : UIView {
}
private func initialize() {
self.setupBarView()
self.setupBackroundColor()
self.subscribeForNotifications()
setups()
subscribeForNotifications()
}
deinit {
self.unsubscribeFromNotifications()
unsubscribeFromNotifications()
}
// MARK: - Setups
private func setups() {
setupBarView()
setupBackroundColor()
}
private func setupBarView() {
addSubview(self.barView)
self.barView.frame = self.bounds
addSubview(barView)
barView.frame = bounds
}
private func setupBackroundColor() {
self.backgroundColor = UIColor.grayColor()
backgroundColor = UIColor.grayColor()
}
// MARK: - Notifications