Giter Site home page Giter Site logo

advancedpagecontrol's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on AdvancedPageControl
  • ๐ŸŒฑ Iโ€™m currently learning Flutter
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on Flutter/iOS

Languages and Tools:

Java

dart

swift

Kotlin

HTML5

JavaScript

TypeScript

sql

python

ruby

Android

ios

Node.js

Flutter

Visual Studio Code

MySQL

MongoDB

Git

GitHub




codeSTACKr's Github Stats

Top Langs

advancedpagecontrol's People

Contributors

ganeshmynewcar avatar georgeivanov avatar mohn93 avatar uuttff8 avatar

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

advancedpagecontrol's Issues

Is there any way to alignment left or right

First of all, great work!!! ๐Ÿ‘

Secondly, there's no alignment property available to align the pageControlView to left or to right. It always by default displayed on the center of the container view. Is there any way to achieve this?

setPage change pagecontrol drawer from worm to colorblend

I have setup pagecontrol in tableviewcell

@IBOutlet weak var pageControl: AdvancedPageControlView! {
        didSet {
            if pageControl != nil {
                pageControl.drawer =  : 0, height: 10, width: 10, space: 10, raduis: 5, currentItem: 0, indicatorColor: indicatorColor, dotsColor: .white, isBordered: true, borderColor: indicatorBorderColor, borderWidth: 2, indicatorBorderColor: indicatorBorderColor, indicatorBorderWidth: 2)
                NotificationCenter.default.addObserver(self, selector: #selector(themeChanged(notification:)), name: .themeChanged, object: nil)
            }
        }
    }

Here is scrollViewDidScroll of my pagecontrol

if let cell = table_view.cellForRow(at: IndexPath(row: 0, section: 1)) as? TopBannersCell, cell.collection_view == scrollView {
            let offSet = scrollView.contentOffset.x
            let width = (SceneDelegate.shared?.window?.bounds.width ?? 0)*0.3
            
            let visibleRect = CGRect(origin: cell.collection_view.contentOffset, size: cell.collection_view.bounds.size)
            let visiblePoint = CGPoint(x: visibleRect.midX, y: visibleRect.midY)
            let visibleIndexPath = cell.collection_view.indexPathForItem(at: visiblePoint)
            print("\n**** ",visibleIndexPath," ****\n")
           cell.pageControl.setPage(visibleIndexPath?.item ?? 0)
}

but after first scroll it changes from work to color blend what am i doing wrong here?

[ExtendedDotDrawer] The indicator overlap other items

I have a problem when updating the current page, the indicator view overlap with other dot items

newPageControler.drawer = ExtendedDotDrawer(numberOfPages: 3,space: 16.0, indicatorColor: SColors.greenButton.color, dotsColor: SColors.mainGray.color, isBordered: false, borderWidth: 0.0, indicatorBorderColor: .clear, indicatorBorderWidth: 0.0)

Simulator Screen Shot - iPhone 11 Pro Max - 2021-03-19 at 01 21 36

Extended dots bug

I wasted 1.5 hours and got this result. Nice pod, well tested

RPReplay_Final1621667072.MP4

The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

Hey, good job on making this library public but I do have some concern which you might be able to help me answer. Using the code alone, I got into an error The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions where it happen at multiple places such as:

  1. ExtendedDotDrawer - line 34 & line 73

Paul Hudson talked about some of this stuffs.
https://www.hackingwithswift.com/example-code/language/how-to-fix-the-error-expression-was-too-complex-to-be-solved-in-reasonable-time

This could happen on a slower laptop but do you think you could break them down into pieces? I am currently running on a MacBook Pro 15inch 2018

Very nice Control but issues when using UIPageViewController

I really like this control but I had some issues trying to animate to the right index of the control when I am using a UIPageViewController

So this is what I did:-

        if let scrollView = self.view.subviews.first(where: { $0 is UIScrollView }) as? UIScrollView {
            scrollView.delegate = self
        }
extension OnBoardingPageController: UIScrollViewDelegate {
    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        let offSet = scrollView.contentOffset.x
        let width = scrollView.frame.width
        print(offSet, width)

        pageControl.setCurrentItem(offset: CGFloat(offSet),
                                   width: CGFloat(width))
    }
}

With the UICollectionView example, the width keeps on increasing but with UIPageViewController its constant.

How can i resize, change tincolor(currently white only) and other properties outside of your class (from my viewcontroller ) ?

Hi, the demo is nice. I was going to use this in my app. But the problem is I want to change the color, size, and others from my view controller.

pageControl8.drawer = ThinWormDrawer()
pageControl8.drawer = ScaleDrawer(numberOfPages:5,
height: 16,
width: 16,
space: 16,
raduis: 16,
currentItem: 0,
indicatorColor: .red,
dotsColor: .lightGray) // when i apply this, UI become distored.

I can not do it properly, could you please help me?

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.