swift style lint

This commit is contained in:
Michael Kirk 2019-03-30 08:50:52 -06:00
parent 9f806d3963
commit 78790ab69d
4 changed files with 7 additions and 7 deletions

View File

@ -380,7 +380,7 @@ public class ConversationMediaView: UIView {
private func configure(forError error: MediaError) {
backgroundColor = (Theme.isDarkThemeEnabled ? .ows_gray90 : .ows_gray05)
let icon: UIImage
switch (error) {
switch error {
case .failed:
guard let asset = UIImage(named: "media_retry") else {
owsFailDebug("Missing image")

View File

@ -341,7 +341,7 @@ import SignalMessaging
var lastPinchScale: CGFloat = 1.0
@objc func handlePinch(sender: UIPinchGestureRecognizer) {
switch (sender.state) {
switch sender.state {
case .possible:
break
case .began:
@ -398,7 +398,7 @@ import SignalMessaging
var srcTranslationAtPanStart: CGPoint = CGPoint.zero
@objc func handlePan(sender: UIPanGestureRecognizer) {
switch (sender.state) {
switch sender.state {
case .possible:
break
case .began:

View File

@ -1050,7 +1050,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
let adjustedColors: [CGColor]
let trailingFadeNeeded = self.labelShouldScroll()
switch (type) {
switch type {
case .continuousReverse, .rightLeft:
adjustedColors = [(trailingFadeNeeded ? transparent : opaque), opaque, opaque, opaque]
@ -1105,7 +1105,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
}
private func transactionDurationType(_ labelType: MarqueeType, interval: CGFloat, delay: CGFloat) -> TimeInterval {
switch (labelType) {
switch labelType {
case .leftRight, .rightLeft:
return TimeInterval(2.0 * (delay + interval))
default:

View File

@ -1,5 +1,5 @@
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
import Foundation
@ -63,7 +63,7 @@ class ReminderView: UIView {
func setupSubviews() {
let textColor: UIColor
let iconColor: UIColor
switch (mode) {
switch mode {
case .nag:
self.backgroundColor = UIColor.ows_reminderYellow
textColor = UIColor.ows_gray90