fluidgroup / datasources Goto Github PK
View Code? Open in Web Editor NEW๐พ ๐๐ฑ Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode)
License: MIT License
๐พ ๐๐ฑ Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode)
License: MIT License
I want to update a cell without reloading a cell, so I want to know if we can do that right. If not, why?
I have followed you (Muukii) for a long time, and I respect all your contributions to the ios and Macos communities, especially Texturegroup. You have helped me solve a lot of its problems
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)
`
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
@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
?
Thanks again and sorry to ask simple question. how to make it work without RxSwift?
https://gist.github.com/steve21124/2de1d70850014075dc518d5b3af5835b
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.
the current code does not has dynamic section
https://gist.github.com/steve21124/2b750015ab27df99474fd48bc435ab56
What do you think the best way to handle dynamic section? Like adding new sections
or any other better idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.