Skip to content
This repository was archived by the owner on Aug 13, 2021. It is now read-only.

Commit a02f525

Browse files
author
Jeff Verkoeyen
committed
Resolve build failures with older versions of Swift.
1 parent 9e5ac12 commit a02f525

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/interactions/DirectlyManipulable.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public final class DirectlyManipulable: NSObject, Interaction, Togglable, Statef
6363
public func add(to view: UIView, withRuntime runtime: MotionRuntime, constraints: NoConstraints) {
6464
for gestureRecognizer in [draggable.nextGestureRecognizer,
6565
rotatable.nextGestureRecognizer,
66-
scalable.nextGestureRecognizer] {
66+
scalable.nextGestureRecognizer] as [UIGestureRecognizer?] {
6767
if gestureRecognizer?.delegate == nil {
6868
gestureRecognizer?.delegate = self
6969
}
@@ -73,7 +73,8 @@ public final class DirectlyManipulable: NSObject, Interaction, Togglable, Statef
7373
runtime.connect(enabled, to: rotatable.enabled)
7474
runtime.connect(enabled, to: scalable.enabled)
7575

76-
let anchorPointRecognizers = [rotatable.nextGestureRecognizer, scalable.nextGestureRecognizer].flatMap { $0 }
76+
let gestures: [UIGestureRecognizer?] = [rotatable.nextGestureRecognizer, scalable.nextGestureRecognizer]
77+
let anchorPointRecognizers = gestures.flatMap { $0 }
7778
let adjustsAnchorPoint = AdjustsAnchorPoint(gestureRecognizers: anchorPointRecognizers)
7879
runtime.add(adjustsAnchorPoint, to: view)
7980

src/operators/toString.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
import Foundation
18+
import CoreGraphics
1819

1920
extension MotionObservableConvertible {
2021

src/reactivetypes/ReactiveScrollViewDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
import Foundation
18+
import UIKit
1819

1920
/**
2021
A UIScrollViewDelegate implementation that exposes observable streams for the scroll view delegate

0 commit comments

Comments
 (0)