Giter VIP home page Giter VIP logo

twitterprofile's Introduction

TwitterProfile

CI Status Version License Platform

Easily create screens like Instagram and Twitter profile. Example project shows Twitter case but you can change header and bottom view controllers easily to mimic instagram or similar UIs.

Demo

Demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TwitterProfile is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TwitterProfile'

Author

uğur, [email protected]

License

TwitterProfile is available under the MIT license. See the LICENSE file for more info.

twitterprofile's People

Contributors

ofthewolf 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

twitterprofile's Issues

scrollViewWillEndDragging

Hi
I want to use from scrollViewWillEndDragging in bottom view but it dose not work.
how can i use it?

Doesn't work with table style .insetGrouped

I made a slight modification to your project, so instead of using XLPager, I'm using a UIPageViewController with UITableViewControllers embedded into it.

Everything works perfectly until the table style is set to .insetGrouped. When this happens, the top view from your project fails to scroll, and the table view is the only scrolling view. Setting the style back to .plain allows for the smooth scrolling of both views to work properly.

Any thoughts on why this might happen?

The table view cell not get deselect after touch

Hi~

I'm trying to figure out what's make the table view cell still selected when touch end.
It looks like some hack prevents tableView deselect the cell.

I record a video to reproduce this.

  1. Tap quickly or hold then release the finger on the cell.
  2. The cell gets highlighted

Expect:
The cell should go back to the normal style after touching.

RPReplay_Final1634040408.-.02.mp4

Allow customizing `panView` in view controllers

Hi, @OfTheWolf, thank you for this great implementation!

Would be cool if we could override panView in our view controllers. Current implementation of this protocol is looking at the first level of subviews and searching for UIScrollView.

There are cases though where looking into subviews of first level is not enough, I have a collection view in a second level in the hierarchy due to the more complicated parent/child view controllers hierarchy in one of the tab content.

So if it won't affect the functionality I would like to make PannableViewsProtocol public and allow overriding the default implementation. What do you think?

Tap geustrue of UIView back button is not fired

Thanks for your awesome library.

I have a question how to get tap event from view back button on viewController.swift
Simulator_Screen_Shot_-iPhone_Xs-_2020-06-20_at_10_52_37

I made iboutlet for UIView, and get tap gesture. But UIView do not fire tap gesture.

When I put UIView on Headerviewcontroller , it is fired. How can I get this UIView tap gesture fired? Please help me. Thanks in advance.

@IBOutlet weak var viewBackBtn: UIView!

 override func viewDidLoad() {
    super.viewDidLoad()

   viewBackBtn.isUserInteractionEnabled = true
    let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didBackBtnTapped(_ :)))
    tap.numberOfTouchesRequired = 1
    viewBackBtn.addGestureRecognizer(tap)
}

How to make uiscrollview bounce false

Hi, thank you for sharing this great project with everyone!
Is there any way to make uiscrollview bounce false? Please let me know if there are any ways to do this.

Scroll to top

Incredible project, it's the only one I've found that properly solves the whole layered scroll view issue.

The one issue I've found is that when a user taps the status bar on the top of the screen, the entire view shifts down a bit instead of scrolling to top. Clicking twice properly scrolls to top. I'm unsure of how to fix this as I'm not as familiar with the project structure as you are.

Is there a function to reload for sending data from main controller to header and bottom controller after calling API?

Thanks alot first of all, this library has been really helpful and should have much more attention since it pretty awesome.

  1. My question now is I am calling API in main controller where we have given TPDataSource, after fetching data from API i want to forward it to header and bottom controllers. Can you tell me how we can achieve that?

  2. Also is there a way to blur the image when content is scrolled up top and show user name over it?

Odd scroll jumping when navigating from profile

If you pushViewController from bottomViewController when scrolled to the bottom of the tableView, the position of the scrollView changes by the minHeaderHeight() for some reason.

If the bottomViewController isn't scrolled to the bottom, everything is fine. However, when scrolled to the bottom, when you push a new viewcontroller onto the stack, the bottomViewController shifts.

RTL Support

Need help for RTL Support
Currently, I'm reversing the controllers but I noticed that some menu item labels are having issues with RTL, the words are in LTR.

According to our translator, it's like this: (Assuming the words below in Arabic)
Ex: Ice Cream -> Cream Ice

It happens to the Menu Cell items that are dequeued.

Hoping some ideas on how this will be fixed, Thanks

App hangs for a sometime after calling api and master scrollview messes up

The library is working great when i am working on a local server but as soon as I switch to live, and I call an API the app hangs when i reach xlpagertabbarstrip child controller, when i reach te top the scroll doesnt scroll up to header and keeps scrolling inside tableview so I have to manually scroll up by tapping status bar. Any fixes or modifications I could do in my code would do great help?

Readme for using the library

Please add readme for using this library as I have implemented most of the code in my app by looking into the example project I my header is not showing and I am unable to figure out how to make that correct. Please add readme for use and customisations you offer.

Refresh control capability

This library has been excellent. Except there is no ability to add a refresh control to the scroll views. I would like to be able to refresh my feeds with the refresh control. Is there a way to do this?

pod install

pod 'TwitterProfile' , '1.0.0' Not ready install

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.