Skip to content

Commit

Permalink
Fix build errors in Swift 5.3
Browse files Browse the repository at this point in the history
In Swift 5.3, it seems that the combination of methods and properties
with the same name will fail to resolve.
  • Loading branch information
hugehoge committed Jan 4, 2022
1 parent 268facf commit 47faa1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Public/Types/SnapMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import UIKit
/// - `.afterScrolling`
public struct SnapMode {
/// The default setting for snapping after scrolling.
public static let afterScrolling: SnapMode = afterScrolling(decelerationRate: .fast)
public static let afterScrolling: SnapMode = Self.afterScrolling(decelerationRate: .fast)
/// The default setting for snapping immediately.
public static let immediately: SnapMode = immediately(decelerationRate: .normal, withFlick: true)
public static let immediately: SnapMode = Self.immediately(decelerationRate: .normal, withFlick: true)

internal let decelerationRate: DecelerationRate
internal let snapTiming: SnapTiming
Expand Down

0 comments on commit 47faa1e

Please sign in to comment.