Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
zigzagg16 committed Feb 7, 2019
2 parents b20ee27 + 6b216d4 commit 3861c34
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 40 deletions.
12 changes: 8 additions & 4 deletions Barceloneta.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0920;
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = "Arnaud Schloune";
TargetAttributes = {
FAB0B4341CEBB0BC00CE2FF6 = {
Expand Down Expand Up @@ -286,7 +286,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi";
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -366,12 +366,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -420,12 +422,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -468,7 +472,7 @@
SWIFT_OBJC_BRIDGING_HEADER = "Barceloneta-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -484,7 +488,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Barceloneta-Bridging-Header.h";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
12 changes: 2 additions & 10 deletions Barceloneta/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// AppDelegate.swift
// Barceloneta
//
// Created by Arnaud Schloune on 17/05/16.
// Copyright © 2016 Arnaud Schloune. All rights reserved.
//

import UIKit

@UIApplicationMain
Expand All @@ -27,8 +19,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, COSTouchVisualizerWindowD
// return customWindow
// }()

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// swiftlint:disable:next line_length
private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
5 changes: 3 additions & 2 deletions Barceloneta/Library/Barceloneta.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ open class Barceloneta: UIView {
///Timer and increment settings
public var timerSettings: [TimerSetting] = []
///The delegate, to receive events
//swiftlint:disable:next weak_delegate
weak var delegate: BarcelonetaDelegate?
///The axis on which the view can be dragged
public var axis: Axis = .vertical
Expand Down Expand Up @@ -112,7 +113,7 @@ open class Barceloneta: UIView {

handlePanning(translation: axis == .vertical ? sender.translation(in: self).y : sender.translation(in: self).x)

if sender.state == UIGestureRecognizerState.ended { endedPanning() }
if sender.state == UIGestureRecognizer.State.ended { endedPanning() }
}

///The user started dragging the view
Expand Down Expand Up @@ -242,7 +243,7 @@ open class Barceloneta: UIView {
delay: 0,
usingSpringWithDamping: 0.2,
initialSpringVelocity: 25,
options: UIViewAnimationOptions.allowUserInteraction,
options: UIView.AnimationOptions.allowUserInteraction,
animations: { () -> Void in
self.superview!.layoutIfNeeded()
})
Expand Down
8 changes: 0 additions & 8 deletions Barceloneta/ViewController.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// ViewController.swift
// Barceloneta
//
// Created by Arnaud Schloune on 17/05/16.
// Copyright © 2016 Arnaud Schloune. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
Expand Down
8 changes: 0 additions & 8 deletions BarcelonetaTests/BarcelonetaTests.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// BarcelonetaTests.swift
// BarcelonetaTests
//
// Created by Arnaud Schloune on 03/11/17.
// Copyright © 2017 Arnaud Schloune. All rights reserved.
//

import XCTest
@testable import Barceloneta

Expand Down
8 changes: 0 additions & 8 deletions BarcelonetaUITests/BarcelonetaUITests.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// BarcelonetaUITests.swift
// BarcelonetaUITests
//
// Created by Arnaud Schloune on 17/05/16.
// Copyright © 2016 Arnaud Schloune. All rights reserved.
//

import XCTest

class BarcelonetaUITests: XCTestCase {
Expand Down

0 comments on commit 3861c34

Please sign in to comment.