GithubHelp home page GithubHelp logo

fluidgroup / datasources Goto Github PK

View Code? Open in Web Editor NEW
568.0 10.0 30.0 4.62 MB

๐Ÿ’พ ๐Ÿ”œ๐Ÿ“ฑ Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode)

License: MIT License

Swift 94.59% Objective-C 1.55% Ruby 3.87%
collectionview ios diff viewcontroller data-driven uicollectionview datasource rxswift

datasources's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datasources's Issues

_dataSource.numberOfItems(in: section) always return zero

Great library. thanks for sharing.
Not sure where I did the mistake. it always return zero when calling _dataSource.numberOfItems(in: section) . Basically, I am trying to see if DataSources will work without using RxSwift and RxCocoa. Since the demo only use (RxSwift and RxCocoa)

`
private lazy var _dataSource: DataSource = .init(adapter: .init(collectionView: self.collectionView))

private let section0 = Section(ModelA.self, isEqual: { $0.identity == $1.identity })

var section0Models: [ModelA] = [ModelA(identity: UUID().uuidString, title: String.randomEmoji())] {
    didSet {
        _dataSource.update(
            in: section0,
            items: section0Models,
            updateMode: .partial(animated: true),
            completion: {
                
        })
    }
}

    for _ in 0..<20 {
        _dataSource.add(section: section0)
    }
    for _ in 0..<20 {           
        section0Models.append(ModelA(identity: UUID().uuidString, title: String.randomEmoji()))
    }

// then calling this below always return zero. do you know why?
_dataSource.numberOfItems(in: 0)

`

Can't install via Cocoapods

Mac-mini-admin-2:TestProject admin$ pod install
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Analyzing dependencies
[!] Unable to find a specification for DataSources

Cannot compile via Carthage

@muukii ,

Carthage build fails because it's remaining a reference to ListDiff scheme.

*** Building scheme "DifferenceKit" in DifferenceKit.xcworkspace
A shell task (/usr/bin/xcrun xcodebuild -project /Users/tatsuya.yamamoto/Documents/nm-media-dev/Matching-iPhone/Carthage/Checkouts/DataSources/DataSources.xcodeproj -scheme ListDiff -configuration Release CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -showBuildSettings -skipUnavailableActions) failed with exit code 6:
2023-06-30 12:08:37.026 xcodebuild[60916:3282420] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-21534/IDEFoundation/Execution/RunDestinations/IDERunDestinationCLI.m:566
Details:  Unhandled/unexpected case where no run destinations were produced.
Object:   <IDERunDestinationCLI>
Method:   +resolveRunDestinationsWithWorkspace:scheme:buildAction:schemeCommand:schemeTask:destinationSpecifications:architectures:timeout:runDestinationManager:deviceManager:fallbackPreferredSDK:fallbackPreferredArchitectures:skipUnsupportedDestinations:shouldSkipRunDestinationValidation:didDisambiguate:disambiguatedMatches:disambiguatedMatchesDescription:error:
Thread:   <_NSMainThread: 0x600000ff4280>{number = 1, name = main}
Hints: 

Backtrace:
  0   -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   _sortDevicesForDisplay (in IDEFoundation)
  4   -[Xcode3CommandLineBuildTool _resolveRunDestinationsForBuildAction:] (in Xcode3Core)
  5   -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
  6   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
  7   XcodeBuildMain (in libxcodebuildLoader.dylib)
  8   start (in dyld)

And README.md still saids ListDiff.framework but it should be DifferenceKit.framework ?

We should add `ListDiff.framework`, not `Diff.framework` when installed DataSources with Carthage

At first time, I only linked DataSources.framework. In this situation, logs below appeared at run time:

dyld: Library not loaded: @rpath/ListDiff.framework/ListDiff
  Referenced from: /path/to/my/app/Frameworks/DataSources.framework/DataSources
  Reason: image not found
(lldb)

And then I looked README.md and found note about Diff.framework, but I could't find Diff.framework under the /Carthage/Build/iOS/ folder.
I think it is ListDiff.framework. Is it right?

$ git diff -U0
diff --git a/README.md b/README.md
index 33d51fe..a20961b 100644
--- a/README.md
+++ b/README.md
@@ -355 +355 @@ github "muukii/DataSources"
-You need to add `DataSources.framework` and `Diff.framework` to your project.
+You need to add `DataSources.framework` and `ListDiff.framework` to your project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.