mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-26 22:07:12 +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
|
||||
// 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
|
||||
|
||||
Reference in new issue
Block a user