-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98b16af
commit dbfd88f
Showing
5 changed files
with
69 additions
and
15 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
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 |
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
41 changes: 41 additions & 0 deletions
41
Sources/BottomSheet/Helper/Extensions/BundleExtension.swift
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 |
---|---|---|
@@ -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 |
Binary file modified
BIN
+138 Bytes
(110%)
.../BottomSheet/Media.xcassets/xmark.circle.fill.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.