Code Monkey home page Code Monkey logo

chipagecontrol's People

Contributors

chili-ios avatar fernandomatal avatar fpinvidio avatar hoojy avatar jstart avatar love4soul avatar mihailstumkins avatar nunoonun avatar onurgenes avatar serhanaksut 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  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

chipagecontrol's Issues

Objective C

Hello,

Have successfully added this control to an Obj C project but am unable to see the func set(progress: Int, animated: Bool) from my class.

Is this a limitation or is there workaround to get the control to animate?

Code signing issue

I have following error on my storyboard that breaks the view for view controller that I've used page control. it shows all my views as white blank views on the storyboard for related view controller.

Profile.storyboard: error: IB Designables: Failed to render and update auto layout status for ProfileDetailController (mG7-Ex-hLd): dlopen(CHIPageControl.framework, 1): no suitable image found. Did find:
CHIPageControl.framework: required code signature missing for 'CHIPageControl.framework'

What should I do to fix it? it is so annoying. I am using latest version.

Working on above XCode 9.2?

Hello,

I am trying to integrate this POD in my Objective-C.

I am facing some issues.

we have to convert this to bridging header in XCode 8.0

Can you help me please ?

Doesn't support transform rotation

First of all, thanks for the marvelous package. I wanted to use the Jalapeno package as a vertical page control. For that reason, I applied the transform which is pageControl.transform.rotated(by: .pi/2) to the view and then I used auto layout for positioning but it didn't work as expected.

Can you fix this issue?

enableTouchEvent

CHIBasePageControlDelegate not working on start touch progress view

animation not working

`override func viewDidLoad() {
super.viewDidLoad()

    splashScrollView.contentSize = CGSize(width: screenSize.width*4, height: screenSize.height)
    splashScrollView.isPagingEnabled = true
    splashScrollView.delegate = self
    self.view.addSubview(splashScrollView)
    
    pageControl = CHIPageControlAji(frame: CGRect(x: (screenSize.width/2)-100, y: screenSize.height-90, width: 200, height: 20))
    pageControl.numberOfPages = 4
    pageControl.radius = 4
    pageControl.tintColor = colorWhite
    pageControl.padding = 6
    self.view.addSubview(pageControl)
    
    self.view.setNeedsUpdateConstraints()
}
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
    
    if (scrollView == splashScrollView) {
        
        let total = scrollView.contentSize.width - scrollView.bounds.width
        let offset = scrollView.contentOffset.x
        let percent = Double(offset / total)
        
        let progress = percent * Double(4 - 1)
        pageControl.set(progress: Int(progress), animated: true)
        
    }
}`

Optimizing with Delegate

You can make CHIPageControlChimayo like CHIPageControl + Chimayo

make Chimayo like a delegate object conforming a delegate like

protocol XXXDelegate {
    func updateNumberOfPages(_ count: Int)
    func update(for progress: Double)
    func didLayoutSubviews()
    func sizeThatFits(_ size: CGsize) -> CGSize
}

Implementing CHIPageControl through xib crashes the App

After implementing UIView with custom class of CHIPageControlAji or some other CHIPageControl class, the App crashes. Something's wrong with designable view and I even got fatal error saying trying to access nil variable.

You can avoid this issue if you add UIView in xib as a container which will than be used in code like:
var customPageControl: CHIBasePageControl?
customPageControl = CHIPageControlAji(frame: CGRect(x: 0, y:0, width: 100, height: 20)) containerViewForPageControl.addSubview(customPageControl)

one question

when i used CHIPageControlJalapeno class to make cycleSrollerview demo , i found a bug.
For example , i have four images , when the fourth img back to first image , i used self.pageControl.progress = progress; the animation pause for a moment like this picture。
Uploading 0D790545-B2D8-43F1-9863-FCC86BFF5385.png…

Unrecognized Selector

Has crashing issues in v0.1.7 using swift 4.2

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CHIPageControl.WeakProxy updateFrame]: unrecognized selector sent to instance 0x1c4014240

What is the minimum version of iOS?

hello
I Found in the readme file is written in 9.0, but in the podspec file is written 8.0, I can not determine in the end which is correct.

Conform to protocol 'CHIBasePageControlDelegate'

I added CHIPageControlAji in storyboard. In my viewController, I appointed it delegate. And in the extension, I signed the CHIBasePageControlDelegate protocol. I've implemented a method didTouch but I have the following mistake
Type 'OnboardingContainerController' does not conform to protocol 'CHIBasePageControlDelegate'

What could be the problem? How can it be solved?

CHIPageControl Active Element Frame

Hi,

Is there any chance to use 2 different frame for page controls. For example I'm using CHIPageControlJaloro And I want to use different width for current element.

Also I Know there is a variable which name is active in CHIPageControlJaloro. But we can't access it outside of pod.

Active page out of bounds

Is it possible to handle big number of pages, so active indicator will be always visible?

In case width of control is less than required by the number of pages, then active indicator keeps moving out of bounds.

I would tell that it should handle this case, and if active indicator is "near" bounds, then it should move all unactive indicators to the left/right, and active indicator should have static positions.

Touch event

Is it possible to get the touch event in any of the pages of the control?

I'm thinking on implement it, but first I wanted to know if the behavior exists or not.

Thanks!

Delegate (touch event) is not working

After implementing CHIPageControl, I cannot access
pageControl.enableTouchEvents = true
also there is no CHIBasePageControlDelegate delegate available

Unable to build project on pod update

I have updated "CHIPageControl" pod to latest version '0.1.7'. On building the project I am getting error - "Type 'RunLoopMode' has no member 'common'"

PFA for the error screenshot.
error

Support for creating custom control using CHIBasePageControl

Hey,
Can you adjust CHIBasePageControl so it can be used as super class outside CHIPageControl framework? Right now, some methods cannot be overridden (like updateNumberOfPages and update(for progress:)) and others cannot be used outside, all because of internal access level.

SPM Support Not Working

The package has been updated recently with SPM support (#79 and #78), but I get errors with it.

I am on Xcode 13.0, using the built in Swift Package Manager, and specify the master branch in rules when adding the package.

When I import the module in my code, I receive the error
"No such module 'CHIPageControl'"

Additionally, I receive a warning which might be related

found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /Users/******/Library/Developer/Xcode/DerivedData/*****-aheljstdlofofhcbswicoezhhaqd/SourcePackages/checkouts/CHIPageControl/CHIPageControl/Info.plist

Set tint color with opacity

Hi, I have a problem with CHIPageControlJaloro. I need to set tint color with opacity 0.4, but tint color returns opacity 1.0. How can I do this?

Add zoom animated

Your lib is so cool :)) But can you support more animation like zoom (zoom at current circle).
Thanks !

Circular page control

Hey, guys! Awesome lib!
I was wondering if there is a way to make CHIPageControl circular? I mean, some approach for the case, when I set first current page after the last with proper portal-like animation?

Problem to set current page

pageControl.currentPage = 0
currentPage is not set as 0, it show Error: Cannot assign to property: 'currentPage' is a get-only property

CHIPageControlAji inactive background

Its impossible to set background color for CHIPageControlAji, I tried to achieve this using cornerRadius but active circle in this case is always smaller than inactive and dont overlap it

Ambiguous use of 'borderWidth'

Hi,

I am trying to use the CHIPageControlAji but in this line:
pageIndicator.borderWidth = 1 // this should set the indicator border, right?

I get this error:
Ambiguous use of 'borderWidth'

  • Found this candidate (CHIPageControl.CHIBasePageControl)
  • Found this candidate (Material.UIView)

I am using :

Xcode 8.3.1 
pod 'CHIPageControl', ' ~> 0.1.3'
pod 'Material', '~> 2.6.3'

missing cleanup for CADisplayLink

Correct me if I'm wrong but aren't you missing cleanup for CADisplayLink?
Shouldn't you at least .invalidate() it (probably remove from runloop also) before CHIBasePageControl is deallocated? Otherwise you risking of calling method on deallocated CHIBasePageControl

Animation lag

Hello. I have found one interesting thing. While i scroll something on screen with your page control animation doesn't work and it starts only after scrolling is stopped. I have tried change mode for display link to .commonModes and it have worked perfectly.

internal func setupDisplayLink() {
        self.displayLink = CADisplayLink(target: self, selector: #selector(updateFrame))
        self.displayLink?.add(to: .current, forMode: .defaultRunLoopMode)
    }

Could you check it and update pod. Thank you.

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.