623637646 / impressionkit Goto Github PK
View Code? Open in Web Editor NEWA tool to detect impression events for UIView (exposure of UIView) in iOS. SwiftUI supported.
License: MIT License
A tool to detect impression events for UIView (exposure of UIView) in iOS. SwiftUI supported.
License: MIT License
Thank you for the nice library.
Can you also support View
on SwiftUI
?
是否可以支持一下OC
First, thank you for making a nice kit.
For example, if the frame of ScrollView in the example app is CGRect(x: 0, y: self.view.frame.height / 2, width: self.view.frame.width, height: self.view.frame.height / 2)
,
AreaRatio doesn't seem to be calculated normally.
Thanks.
var impressionGroup: ImpressionGroup = {
let impression = ImpressionGroup.init {(_, index: IndexPath, view, state) in
}
impression.redetectOptions = [.leftScreen]//no work
UIView.redetectOptions = [.leftScreen]//usefull
return impression
}()
If user selects .didEnterBackground
as redetection Option and puts the application background then in foreground ImpressionKit doesn't detect impressions properly.
Here's the steps to reproduce
Redetect When didEnterBackground
from SettingsUICollectionView (reused views)
from DemosCollectionView
. Make sure all views are impressed
(marked with green color).CollectionView
then scroll to the bottom of the CollectionView
background
foreground
Result: Application gets into foreground state
however all cells are already marked with green color -impressed. (Sometimes - cells stays on white color or impression only works partially for some cells). Also logs doesn't show any indication of redetection.
Expected behaviour: Impression should be redetected - Cell colors should be White- Red-Green.
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.