-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from hugehoge/add-doc-comment
Added document comment
- Loading branch information
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import UIKit | ||
|
||
/// A typealias defining the deceleration rate for ScrollView that be applied `snappable` modifier. | ||
public typealias DecelerationRate = UIScrollView.DecelerationRate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
/// An alignment definition in snapping. | ||
public enum SnapAlignment { | ||
/// A snap guide marking the top and leading edges of the view. | ||
@available(*, unavailable, message: "Not yet to support in horizontal + vertical movements.") | ||
case topLeading | ||
/// A snap guide marking the top edge of the view. | ||
case top | ||
/// A snap guide marking the top and trailing edges of the view. | ||
@available(*, unavailable, message: "Not yet to support in horizontal + vertical movements.") | ||
case topTrailing | ||
/// A snap guide marking the leading edge of the view. | ||
case leading | ||
/// A snap guide marking the center of the view. | ||
case center | ||
/// A snap guide marking the trailing edge of the view. | ||
case trailing | ||
/// A snap guide marking the bottom and leading edges of the view. | ||
@available(*, unavailable, message: "Not yet to support in horizontal + vertical movements.") | ||
case bottomLeading | ||
/// A snap guide marking the bottom edge of the view. | ||
case bottom | ||
/// A snap guide marking the bottom and trailing edges of the view. | ||
@available(*, unavailable, message: "Not yet to support in horizontal + vertical movements.") | ||
case bottomTrailing | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters