Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
havebeenfitz committed Mar 5, 2023
1 parent ff6da81 commit 4a69373
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion AnchoredBottomSheet.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AnchoredBottomSheet'
s.version = '1.5.0'
s.version = '1.6.0'
s.summary = 'iOS Maps like bottom sheet with configurable anchors and reusable pannable View'

s.description = <<-DESC
Expand Down
9 changes: 4 additions & 5 deletions Example/AnchoredBottomSheet/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
return true
}


}

8 changes: 4 additions & 4 deletions Example/AnchoredBottomSheet/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="TeA-ZN-Vf2">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="TeA-ZN-Vf2">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -31,8 +31,8 @@
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="TeA-ZN-Vf2" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="3dq-EL-nxt">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="3dq-EL-nxt">
<rect key="frame" x="0.0" y="0.0" width="375" height="96"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
Expand Down
6 changes: 4 additions & 2 deletions Example/AnchoredBottomSheet/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ class ViewController: UIViewController {
}

private func setup() {
title = "Bottom sheets"
navigationController?.navigationItem.largeTitleDisplayMode = .always

view.addSubview(tableView)

tableView.translatesAutoresizingMaskIntoConstraints = false
[
tableView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
Expand Down Expand Up @@ -75,7 +79,6 @@ class ViewController: UIViewController {
}

func presentModalWithTableView() {

let configuration = BottomSheetViewConfiguration(
contentView: data.tableView,
parentViewController: self,
Expand Down Expand Up @@ -141,4 +144,3 @@ extension ViewController: BottomSheetViewControllerDelegate {
print("dismissed")
}
}

6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- AnchoredBottomSheet (1.5.0)
- AnchoredBottomSheet (1.6.0)

DEPENDENCIES:
- AnchoredBottomSheet (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
AnchoredBottomSheet: 678f021d4f688a23abb5be99b3648b6cc93e8708
AnchoredBottomSheet: 9cf13ef4c2eda75d63c29c7dc70659b8e3d596ca

PODFILE CHECKSUM: 77164d437cf70786e3e3575ef7f8acde18e1f5bd

COCOAPODS: 1.11.2
COCOAPODS: 1.11.3
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/AnchoredBottomSheet.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 23 additions & 16 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a69373

Please sign in to comment.