{"action":"opened","issue":{"url":"https://api.github.com/repos/material-components/material-components-ios/issues/5294","repository_url":"https://api.github.com/repos/material-components/material-components-ios","labels_url":"https://api.github.com/repos/material-components/material-components-ios/issues/5294/labels{/name}","comments_url":"https://api.github.com/repos/material-components/material-components-ios/issues/5294/comments","events_url":"https://api.github.com/repos/material-components/material-components-ios/issues/5294/events","html_url":"https://github.com/material-components/material-components-ios/issues/5294","id":365878021,"node_id":"MDU6SXNzdWUzNjU4NzgwMjE=","number":5294,"title":"TabBar position should be allowed to be set by the user","user":{"login":"pikaboo","id":3405551,"node_id":"MDQ6VXNlcjM0MDU1NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/3405551?v=4","gravatar_id":"","url":"https://api.github.com/users/pikaboo","html_url":"https://github.com/pikaboo","followers_url":"https://api.github.com/users/pikaboo/followers","following_url":"https://api.github.com/users/pikaboo/following{/other_user}","gists_url":"https://api.github.com/users/pikaboo/gists{/gist_id}","starred_url":"https://api.github.com/users/pikaboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikaboo/subscriptions","organizations_url":"https://api.github.com/users/pikaboo/orgs","repos_url":"https://api.github.com/users/pikaboo/repos","events_url":"https://api.github.com/users/pikaboo/events{/privacy}","received_events_url":"https://api.github.com/users/pikaboo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-02T12:39:26Z","updated_at":"2018-10-02T12:39:26Z","closed_at":null,"author_association":"NONE","body":"> For usage questions: ask on [Stack  Overflow](https://stackoverflow.com/questions/tagged/material-components+ios).\r\n\r\nA clear and concise description of what the bug is.\r\nThe tab bar position is set by default to be at the bottom, even though every example i found shows it to be at the top.\r\nThere is a piece of code that forces it to be at the bottom, instead of using the UIBarPosition that the user gave in the method\r\n\r\n`    override func position(for bar: UIBarPositioning) -> UIBarPosition {\r\n        return .top\r\n    }`\r\n\r\n## Reproduction steps\r\n\r\nCreate an MDCTabBarViewController without using AppBar\r\n\r\nSteps to reproduce the behavior:\r\n\r\nCreate MDCTabBarViewController without using AppBar,\r\noverride method \r\n`    override func position(for bar: UIBarPositioning) -> UIBarPosition {\r\n        return .top\r\n    }`\r\n\r\n\r\n## Expected behavior\r\nAppBar appears at the top of the screen\r\n\r\n## Actual behavior\r\n\r\nAppBar appears at the bottom of the screen\r\n\r\nA clear and concise description of what actually happened. Include screenshots or gifs where possible.\r\n<img width=\"377\" alt=\"tabbar\" src=\"https://user-images.githubusercontent.com/3405551/46348915-3c3fc000-c659-11e8-800a-12ce192b9e34.png\">\r\n\r\n## Platform (please complete the following information)\r\n\r\n - Device:All devices\r\n - OS: All Os'\r\n\r\n## Additional context\r\nThe problem lies here:\r\n\r\n<img width=\"794\" alt=\"updatelayout\" src=\"https://user-images.githubusercontent.com/3405551/46348922-4366ce00-c659-11e8-9473-b471e0d90ef5.png\">\r\n\r\nYou should use the \"set variable\" of the user, and not automatically use \"UIBarPositionBottom\"\r\n"}}
{"actor":{"display_login":"pikaboo"}}