Code Monkey home page Code Monkey logo

impressionkit'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

impressionkit's Issues

AreaRatio Calculation problem with SuperView

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.

Simulator.Screen.Recording.-.iPhone.12.Pro.-.2021-06-23.at.14.17.39.mp4

ImpressionGroup().redetectOptions no work

var impressionGroup: ImpressionGroup = {
let impression = ImpressionGroup.init {(_, index: IndexPath, view, state) in
}
impression.redetectOptions = [.leftScreen]//no work
UIView.redetectOptions = [.leftScreen]//usefull
return impression
}()

Redetection doesn't work properly when .didEnterBackground is selected as Redetection Option with CollectionView reusable views

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

  1. Launch App
  2. Select Redetect When didEnterBackground from Settings
  3. Select UICollectionView (reused views) from Demos
  4. Slowly scroll to the bottom of the CollectionView. Make sure all views are impressed (marked with green color).
  5. Once all cells are impressed (marked with green color) scroll to the top of the CollectionView then scroll to the bottom of the CollectionView
  6. Put application to background
  7. Bring the application to the 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.

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.