Skip to content

Commit

Permalink
Update readme + gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
havebeenfitz committed May 10, 2021
1 parent e3bdc1f commit ec3f232
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DerivedData
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build
Carthage

# Swift Package Manager
#
Expand All @@ -40,6 +40,4 @@ Package.resolved
# hence it is not needed unless you have added a package configuration file to your project
.swiftpm

.build/

Carthage
.build/
2 changes: 1 addition & 1 deletion AnchoredBottomSheet.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'AnchoredBottomSheet'
s.version = '1.3.0'
s.version = '1.3.1'
s.summary = 'iOS Maps like bottom sheet with configurable anchors and reusable pannable View'

s.description = <<-DESC
Expand Down
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ This is iOS Maps like anchored bottom sheet with configurable anchors and reusab
To configure `BottomSheetView` you should use `BottomSheetViewConfiguration` struct like this:

```swift
let config = BottomSheetViewConfiguration(contentView: UIView(),
parentViewController: self,
defaultPosition: .middle(),
positions: [.top(), .middle(), .bottom()],
isSlidingToAppear: false,
isPullIndicatorNeeded: true,
closeButtonIcon: UIImage(named: "closeIcn)",
isDismissAllowed: false,
cornerRadius: 16)
let config = BottomSheetViewConfiguration(
contentView: UIView(),
parentViewController: self,
defaultPosition: .middle(),
positions: [.top(), .middle(), .bottom()],
isSlidingToAppear: false,
isPullIndicatorNeeded: true,
closeButtonIcon: UIImage(named: "closeIcon)",
isDismissAllowed: false,
cornerRadius: 16
)
```

Supported anchors:
Expand Down Expand Up @@ -70,7 +72,7 @@ AnchoredBottomSheet is available through [CocoaPods](https://cocoapods.org). To
it, simply add the following line to your Podfile:

```ruby
pod 'AnchoredBottomSheet', '~> 1.2.0'
pod 'AnchoredBottomSheet', '~> 1.3.1'
```


Expand All @@ -88,7 +90,7 @@ $ brew install carthage
To integrate AnchoredBottomSheet into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "havebeenfitz/AnchoredBottomSheet" "1.2.4"
github "havebeenfitz/AnchoredBottomSheet" "1.3.1"
```

Run `carthage update` to build the framework and drag the built `SnapKit.framework` into your Xcode project.
Expand All @@ -105,7 +107,7 @@ To integrate AnchoredBottomSheet into your Xcode project using Swift Package Man
dependencies: [
.package(
url: "https://github.com/havebeenfitz/AnchoredBottomSheet.git",
.upToNextMajor(from: "1.2.4")
.upToNextMajor(from: "1.3.1")
)
]
```
Expand Down

0 comments on commit ec3f232

Please sign in to comment.