Skip to content

Commit

Permalink
Merge pull request #339 from lickel/spm
Browse files Browse the repository at this point in the history
SPM support #213
  • Loading branch information
kyleve authored Nov 1, 2021
2 parents 97a65fd + ac64356 commit 3cbb65a
Show file tree
Hide file tree
Showing 52 changed files with 173 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import BlueprintUI
import ListableUI
import UIKit


/// Alias to allow less verbose creation of headers.
Expand Down
1 change: 1 addition & 0 deletions BlueprintUILists/Sources/BlueprintItemContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import BlueprintUI
import ListableUI
import UIKit


///
Expand Down
2 changes: 1 addition & 1 deletion BlueprintUILists/Sources/List.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//

import BlueprintUI

import ListableUI
import UIKit


///
Expand Down
1 change: 1 addition & 0 deletions BlueprintUILists/Sources/ListReorderGesture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import BlueprintUI
import ListableUI
import UIKit


///
Expand Down
14 changes: 11 additions & 3 deletions Internal Pods/EnglishDictionary/Sources/EnglishDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
import UIKit


class BundleFinder : NSObject {}
internal extension Bundle {
static var resources: Bundle {
#if SWIFT_PACKAGE
return .module
#else
let main = Bundle(for: EnglishDictionary.self)
return Bundle(url: main.url(forResource: "EnglishDictionaryResources", withExtension: "bundle")!)!
#endif
}
}

public class EnglishDictionary
{
Expand All @@ -19,8 +28,7 @@ public class EnglishDictionary

public init()
{
let main = Bundle(for: EnglishDictionary.self)
let bundle = Bundle(url: main.url(forResource: "EnglishDictionaryResources", withExtension: "bundle")!)!
let bundle = Bundle.resources

let stream = InputStream(url: bundle.url(forResource: "dictionary", withExtension: "json")!)!
defer { stream.close() }
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/Appearance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 10/17/19.
//

import UIKit


///
/// Contains all the properties which affect the appearance of all possible kinds of list layouts.
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Behavior.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


/// Controls various behaviors of the list view, such as keyboard dismissal, selection mode, and behavior
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Content.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Kyle Van Essen on 6/21/19.
//

import UIKit


public struct Content
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ContentBounds/ListContentBounds.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


/// For participating layouts; allows controlling the padding around and width of content when it is laid out.
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/EmbeddedList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 11/10/19.
//

import UIKit


public extension Item where Content == EmbeddedList
{
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/HeaderFooter/AnyHeaderFooter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public protocol AnyHeaderFooter : AnyHeaderFooterConvertible, AnyHeaderFooter_Internal
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/HeaderFooter/HeaderFooter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 8/10/19.
//

import UIKit


public typealias Header<Content:HeaderFooterContent> = HeaderFooter<Content>
public typealias Footer<Content:HeaderFooterContent> = HeaderFooter<Content>
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/HeaderFooter/HeaderFooterContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 8/10/19.
//

import UIKit


public typealias HeaderContent = HeaderFooterContent
public typealias FooterContent = HeaderFooterContent
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Internal/CGSize.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


internal extension CGSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


protocol AnyPresentationHeaderFooterState : AnyObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


protocol AnyPresentationItemState : AnyObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


extension PresentationState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 7/22/19.
//

import UIKit


/// A class used to manage the "live" / mutable state of the visible items in the list,
/// which is persistent across diffs of content (instances are only created or destroyed when an item enters or leaves the list).
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Internal/UIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


extension UIView {
Expand Down
3 changes: 3 additions & 0 deletions ListableUI/Sources/Item/ItemContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// Created by Kyle Van Essen on 8/10/19.
//

import UIKit


///
/// An `ItemContent` is a type used to provide the content of an `Item` in a list section.
///
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/Item/ItemContentCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 5/19/20.
//

import Foundation


///
/// A type which lets you interactively manage the contents of an `Item` or `ItemContent`
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Item/ItemReordering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


///
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Item/ItemState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public struct ItemState : Hashable
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/Layout/Grid/GridListLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//

import Foundation
import UIKit


extension LayoutDescription
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 6/9/21.
//

import UIKit


///
/// A struct-based version of many of the properties available on `UICollectionViewLayoutAttributes`,
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Layout/ListLayout/ListLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public protocol ListLayout : AnyListLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


struct ListLayoutAttributes : Equatable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public final class ListLayoutContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public struct ListLayoutPoint : Hashable {
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/Layout/Paged/PagedListLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 6/4/20.
//

import UIKit


public extension LayoutDescription
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//

import Foundation
import UIKit


extension LayoutDescription
{
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/Layout/Table/TableListLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public extension LayoutDescription
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/LayoutDirection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 11/10/19.
//

import UIKit


///
/// Describes the given direction / axis that a layout uses when flowing its content.
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListActions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


///
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


///
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListScrollPositionInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


/// Information about the current scroll position of a list,
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListStateObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


/// Allows reading state and events based on state changes within the list view.
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/ListView/ListView+ContentSize.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 9/21/20.
//

import UIKit


extension ListView
{
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/ListView/ListView.DataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 11/19/19.
//

import UIKit


internal extension ListView
{
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/ListView/ListView.Delegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 11/19/19.
//

import UIKit


extension ListView
{
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListView/ListView.LayoutManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


extension ListView
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/ListView/ListView.Storage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 11/19/19.
//

import UIKit


internal extension ListView
{
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListView/UpdateCallbacks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


public final class UpdateCallbacks {
Expand Down
1 change: 1 addition & 0 deletions ListableUI/Sources/ListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import UIKit


///
Expand Down
2 changes: 2 additions & 0 deletions ListableUI/Sources/ListViewSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Kyle Van Essen on 8/4/19.
//

import UIKit


// TODO: Rename this all to ContentProvider?

Expand Down
Loading

0 comments on commit 3cbb65a

Please sign in to comment.