Commit 034d693f by Daniel Dahan

fixed warnings and removed code signing

parent a3146a47
......@@ -816,6 +816,7 @@
DevelopmentTeam = 9Z76XCNLGL;
DevelopmentTeamName = "CosmicMind Inc.";
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
};
963832401B88DFD80015F710 = {
CreatedOnToolsVersion = 6.4;
......
......@@ -127,7 +127,7 @@ public struct Animation {
:name: animateWithDelay
*/
public static func animateWithDelay(delay d: CFTimeInterval, duration: CFTimeInterval, animations: (() -> Void), completion: (() -> Void)? = nil) {
delay(time: d) {
_ = delay(time: d) {
animateWithDuration(duration: duration, animations: animations, completion: completion)
}
}
......
......@@ -150,7 +150,7 @@ public class BottomTabBar: UITabBar {
super.didMoveToSuperview()
if autoLayoutToSuperview {
if let v: UIView = superview {
v.layout(self).bottom().horizontally()
_ = v.layout(self).bottom().horizontally()
}
}
}
......
......@@ -218,7 +218,7 @@ public class Button: UIButton {
public func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
Animation.delay(time: 0.35) { [weak self] in
_ = Animation.delay(time: 0.35) { [weak self] in
guard let s = self else {
return
}
......
......@@ -559,7 +559,7 @@ public class Capture : View, UIGestureRecognizerDelegate {
}
v.transform = CATransform3DMakeScale(0.5, 0.5, 1)
}) {
Animation.delay(time: 0.4) { [weak layer] in
_ = Animation.delay(time: 0.4) { [weak layer] in
Animation.animationDisabled { [weak layer] in
guard let v = layer else {
return
......
......@@ -277,7 +277,7 @@ public class Card: PulseView {
verticalFormat += "-[titleLabel]"
views["titleLabel"] = v
layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right)
_ = layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right)
}
// detail
......@@ -292,7 +292,7 @@ public class Card: PulseView {
verticalFormat += "-[contentView]"
views["contentView"] = v
layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right)
_ = layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right)
}
// leftButtons
......@@ -314,7 +314,7 @@ public class Card: PulseView {
h += "[\(k)]"
layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom)
_ = layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom)
i += 1
}
......@@ -343,7 +343,7 @@ public class Card: PulseView {
h += "-(right_left)-"
}
layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom)
_ = layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom)
i -= 1
}
......
......@@ -45,7 +45,7 @@ public struct Device {
let machineMirror = Mirror(reflecting: systemInfo.machine)
let identifier = machineMirror.children.reduce("") { (identifier, element) in
guard let value = element.value as? Int8 where value != 0 else {
guard let value = element.value as? Int8, value != 0 else {
return identifier
}
return identifier + String(UnicodeScalar(UInt8(value)))
......
......@@ -378,9 +378,9 @@ public class ImageCard: PulseView {
verticalFormat += "-[titleLabel]"
views["titleLabel"] = v
} else {
layout(v).top(contentInset.top + titleLabelInset.top)
_ = layout(v).top(contentInset.top + titleLabelInset.top)
}
layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right)
_ = layout(v).horizontally(left: contentInset.left + titleLabelInset.left, right: contentInset.right + titleLabelInset.right)
}
// detail
......@@ -395,7 +395,7 @@ public class ImageCard: PulseView {
verticalFormat += "-[contentView]"
views["contentView"] = v
layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right)
_ = layout(v).horizontally(left: contentInset.left + contentViewInset.left, right: contentInset.right + contentViewInset.right)
}
// leftButtons
......@@ -417,7 +417,7 @@ public class ImageCard: PulseView {
h += "[\(k)]"
layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom)
_ = layout(b).bottom(contentInset.bottom + leftButtonsInset.bottom)
i += 1
}
......@@ -446,7 +446,7 @@ public class ImageCard: PulseView {
h += "-(right_left)-"
}
layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom)
_ = layout(b).bottom(contentInset.bottom + rightButtonsInset.bottom)
i -= 1
}
......
......@@ -307,7 +307,7 @@ public class MaterialCollectionReusableView: UICollectionReusableView {
public func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
Animation.delay(time: 0.35) { [weak self] in
_ = Animation.delay(time: 0.35) { [weak self] in
guard let s = self else {
return
}
......
......@@ -309,7 +309,7 @@ public class MaterialCollectionViewCell: UICollectionViewCell {
public func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
Animation.delay(time: 0.35) { [weak self] in
_ = Animation.delay(time: 0.35) { [weak self] in
guard let s = self else {
return
}
......
......@@ -166,7 +166,7 @@ public class MaterialTableViewCell: UITableViewCell {
public func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
Animation.delay(time: 0.35) { [weak self] in
_ = Animation.delay(time: 0.35) { [weak self] in
guard let s = self else {
return
}
......
......@@ -98,7 +98,7 @@ internal extension Animation {
default:break
}
Animation.delay(time: duration) {
_ = Animation.delay(time: duration) {
bLayer.setValue(true, forKey: "animated")
}
}
......@@ -118,7 +118,7 @@ internal extension Animation {
return
}
Animation.delay(time: animated ? 0 : 0.15) {
_ = Animation.delay(time: animated ? 0 : 0.15) {
guard let pLayer: CAShapeLayer = bLayer.sublayers?.first as? CAShapeLayer else {
return
}
......@@ -140,7 +140,7 @@ internal extension Animation {
default:break
}
Animation.delay(time: duration) {
_ = Animation.delay(time: duration) {
pLayer.removeFromSuperlayer()
bLayer.removeFromSuperlayer()
}
......
......@@ -55,7 +55,7 @@ public class PulseView: View {
public func pulse(point: CGPoint? = nil) {
let p: CGPoint = nil == point ? CGPoint(x: CGFloat(width / 2), y: CGFloat(height / 2)) : point!
Animation.pulseExpandAnimation(layer: layer, visualLayer: visualLayer, pulseColor: pulseColor, pulseOpacity: pulseOpacity, point: p, width: width, height: height, pulseLayers: &pulseLayers, pulseAnimation: pulseAnimation)
Animation.delay(time: 0.35) { [weak self] in
_ = Animation.delay(time: 0.35) { [weak self] in
guard let s = self else {
return
}
......
......@@ -81,6 +81,6 @@ public class StatusBarController : RootController {
statusBarView = View()
statusBarView.zPosition = 3000
statusBarView.backgroundColor = Color.black.withAlphaComponent(0.12)
view.layout(statusBarView).top(0).horizontally().height(20)
_ = view.layout(statusBarView).top(0).horizontally().height(20)
}
}
......@@ -205,11 +205,11 @@ public class TextView: UITextView {
internal func reloadView() {
if let p = placeholderLabel {
removeConstraints(constraints)
layout(p).edges(
top: textContainerInset.top,
left: textContainerInset.left + textContainer.lineFragmentPadding,
bottom: textContainerInset.bottom,
right: textContainerInset.right + textContainer.lineFragmentPadding)
_ = layout(p).edges(
top: textContainerInset.top,
left: textContainerInset.left + textContainer.lineFragmentPadding,
bottom: textContainerInset.bottom,
right: textContainerInset.right + textContainer.lineFragmentPadding)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment