Skip to content

Commit

Permalink
BottomSheet v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaszischka committed Aug 9, 2022
1 parent 98b16af commit dbfd88f
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 15 deletions.
37 changes: 22 additions & 15 deletions BottomSheetSwiftUI.podspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
Pod::Spec.new do |s|
s.name = 'BottomSheetSwiftUI'
s.version = '3.0.0'
s.summary = 'A sliding sheet from the bottom of the screen with custom states build with SwiftUI.'

s.homepage = 'https://github.com/lucaszischka/BottomSheet'
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
s.author = { 'Lucas Zischka' => '[email protected]' }
s.source = { :git => 'https://github.com/lucaszischka/BottomSheet.git', :tag => s.version.to_s }

s.ios.deployment_target = '13.0'
s.swift_version = '5.5'

s.weak_frameworks = 'SwiftUI'
s.source_files = 'Sources/BottomSheet/**/*'
Pod::Spec.new do |spec|
spec.name = 'BottomSheetSwiftUI'
spec.version = '3.0.1'
spec.swift_version = '5.5'
spec.authors = { 'Lucas Zischka' => '[email protected]' }
spec.license = { :type => 'MIT', :file => 'LICENSE.txt' }
spec.homepage = 'https://github.com/lucaszischka/BottomSheet'
spec.readme = 'https://github.com/lucaszischka/BottomSheet/blob/main/README.md'
spec.changelog = 'https://github.com/lucaszischka/BottomSheet/blob/main/CHANGELOG.md'
spec.source = { :git => 'https://github.com/lucaszischka/BottomSheet.git',
:tag => spec.version.to_s }
spec.summary = 'A sliding sheet from the bottom of the screen with custom states build with SwiftUI.'
spec.screenshots = [ 'https://user-images.githubusercontent.com/63545066/132514316-c0d723c6-37fc-4104-b04c-6cf7bbcb0899.gif',
'https://user-images.githubusercontent.com/63545066/132514347-57c5397b-ec03-4716-8e01-4e693082e844.gif',
'https://user-images.githubusercontent.com/63545066/132514283-b14b2977-c5d1-4b49-96b1-19995cd5a41f.gif' ]

spec.ios.deployment_target = '13.0'
spec.osx.deployment_target = '10.15'

spec.source_files = 'Sources/BottomSheet/**/*.swift'
spec.resource_bundle = { 'BottomSheet_BottomSheet' => 'Sources/BottomSheet/**/*.xcassets' }

end
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
BottomSheet Changelog
==================

#### v3.0.1
- Fix CocoaPods build #85
- Fix close button not shown in dark mode #86

#### v3.0.0
- Recoded the project
- Added iPhone landscape support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ internal extension BottomSheetView {
)
// Design of the close button
.resizable()
.renderingMode(.template)
.foregroundColor(.tertiaryLabel)
.scaledToFit()
.frame(
width: 30,
Expand Down
41 changes: 41 additions & 0 deletions Sources/BottomSheet/Helper/Extensions/BundleExtension.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// BundleExtension.swift
//
// Created by Lucas Zischka.
// Copyright © 2022 Lucas Zischka. All rights reserved.
//

#if !SWIFT_PACKAGE
import Foundation

private class BundleFinder {}

internal extension Bundle {
/// Returns the resource bundle associated with the current Swift module.
static var module: Bundle = {
let candidates = [
// Bundle should be present here when the package is linked into an App.
Bundle.main.resourceURL,

// Bundle should be present here when the package is linked into a framework.
Bundle(for: BundleFinder.self).resourceURL,

// For command-line tools.
Bundle.main.bundleURL
]


let bundleName = "BottomSheet_BottomSheet"

for candidate in candidates {
let bundlePath = candidate?.appendingPathComponent(bundleName + ".bundle")
if let bundle = bundlePath.flatMap(Bundle.init(url:)) {
return bundle
}
}

// Return whatever bundle this code is in as a last resort.
return Bundle(for: BundleFinder.self)
}()
}
#endif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dbfd88f

Please sign in to comment.