Giter VIP home page Giter VIP logo

twitterclient's Introduction

Project 3 - myTwitter

myTwitter is a basic twitter app to read and compose tweets the Twitter API.

Time spent: 10 hours spent in total

User Stories

The following required functionality is completed:

  • User can sign in using OAuth login flow.
  • User can view last 20 tweets from their home timeline.
  • The current signed in user will be persisted across restarts.
  • In the home timeline, user can view tweet with the user profile picture, username, tweet text, and timestamp. In other words, design the custom cell with the proper Auto Layout settings. You will also need to augment the model classes.
  • User can pull to refresh.
  • User can compose a new tweet by tapping on a compose button.
  • User can tap on a tweet to view it, with controls to retweet, favorite, and reply.

The following optional features are implemented:

  • When composing, you should have a countdown in the upper right for the tweet limit.
  • After creating a new tweet, a user should be able to view it in the timeline immediately without refetching the timeline from the network.
  • Retweeting and favoriting should increment the retweet and favorite count.
  • User should be able to unretweet and unfavorite and should decrement the retweet and favorite count.
  • Replies should be prefixed with the username and the reply_id should be set when posting the tweet,
  • User can load more tweets once they reach the bottom of the feed using infinite loading similar to the actual Twitter client.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

I faced challenges with autolayout. The main difficulty I faced were

  • To display the retweeted tweet, there is a text ("x retweeted") which will appear at the start of the tweet. But that text will not come for common tweet & hence, the space for that retweeted text should be reused. I spent lot of time to fix that.

  • One another challenge I faced & could not fix it was displaying 2 labels side by side. When the first label's size grows, 2nd label should move right. Hence, I changed them to a single label at last for now. But it would be really helpful if someone could tell me where I went wrong in defining it. You could find my code in the commit (https://github.com/nizhashree/twitterClient/tree/e1eb027065000b5c6c79321dde308b79152600ca)

License

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

twitterclient's People

Watchers

James Cloos avatar  avatar

twitterclient's Issues

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.