mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 06:47:15 +00:00
Code clean-up
This commit is contained in:
1 parent
0bc7e2b115
commit
376bcc2d34
1 file changed
+13
-9
@@ -2,8 +2,8 @@
|
|||||||
// GPSAccuracyView.swift
|
// GPSAccuracyView.swift
|
||||||
// SAPTracker
|
// SAPTracker
|
||||||
//
|
//
|
||||||
// Created by computing on 11/12/14.
|
// Created by Raimund Wege on 05.07.16.
|
||||||
// Copyright (c) 2014 com.sap.sailing. All rights reserved.
|
// Copyright © 2016 com.sap.sailing. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
@@ -29,24 +29,28 @@ class GPSAccuracyView : UIView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func initialize() {
|
private func initialize() {
|
||||||
self.setupBarView()
|
setups()
|
||||||
self.setupBackroundColor()
|
subscribeForNotifications()
|
||||||
self.subscribeForNotifications()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
self.unsubscribeFromNotifications()
|
unsubscribeFromNotifications()
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Setups
|
// MARK: - Setups
|
||||||
|
|
||||||
|
private func setups() {
|
||||||
|
setupBarView()
|
||||||
|
setupBackroundColor()
|
||||||
|
}
|
||||||
|
|
||||||
private func setupBarView() {
|
private func setupBarView() {
|
||||||
addSubview(self.barView)
|
addSubview(barView)
|
||||||
self.barView.frame = self.bounds
|
barView.frame = bounds
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setupBackroundColor() {
|
private func setupBackroundColor() {
|
||||||
self.backgroundColor = UIColor.grayColor()
|
backgroundColor = UIColor.grayColor()
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Notifications
|
// MARK: - Notifications
|
||||||
|
|||||||
Reference in new issue
Block a user