Skip to content

Commit

Permalink
Swift Package Manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes authored and Carl Hill-Popper committed Oct 21, 2021
1 parent a57c21c commit 9b3cf88
Show file tree
Hide file tree
Showing 20 changed files with 127 additions and 89 deletions.
14 changes: 14 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// swift-tools-version:5.2

import PackageDescription

let package = Package(
name: "Static",
products: [
.library(name: "Static", targets: ["Static"])
],
targets: [
.target(name: "Static"),
.testTarget(name: "StaticTests", dependencies: ["Static"])
]
)
File renamed without changes.
File renamed without changes.
9 changes: 6 additions & 3 deletions Static/DataSource.swift → Sources/Static/DataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,12 @@ extension DataSource: UITableViewDelegate {
extension UITableView.Style {
var defaultSectionExtremityHeight: CGFloat {
switch self {
case .plain: return 0
case .grouped: return UITableView.automaticDimension
@unknown default: return UITableView.automaticDimension
case .plain:
return 0
case .grouped, .insetGrouped:
return UITableView.automaticDimension
@unknown default:
return UITableView.automaticDimension
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion Static.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Pod::Spec.new do |spec|
spec.source = { git: 'https://github.com/venmo/Static.git', tag: "v#{spec.version}" }
spec.author = { 'Venmo' => '[email protected]', 'Sam Soffes' => '[email protected]' }

spec.swift_versions = ['5.0', '5.2']
spec.platform = :ios, '8.0'
spec.frameworks = 'UIKit'
spec.source_files = 'Static/*.{swift,h}'
spec.source_files = 'Sources/**/*.swift'
end
190 changes: 105 additions & 85 deletions Static.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9b3cf88

Please sign in to comment.