How to implement the "instagram explore page" top buttons? - ios

If you open the instagram app on your mobile and go to the explorer page you can see couple of buttons on the top of the page like "IGTV", "Travel", ... The interesting part for me is that you can scroll these buttons to the left or right. My question is how do we implement this feature in swift? do we use standard buttons in a specific container or use totally different things. thanks

Related

Unable to add a script button as a left sidebar new tool item in Tabletop Simulator

I am preparing a mod for a tabletop simulator game, and I will be using clickable buttons as there are many options and different setups depending on the number of players that come and how they want to play the game. However, the game is extensive in the number of pieces in the table, so I was trying to add the buttons (that run the setup scripts) as left sidebar tool add-ons so we didn't stretch the table further to the sides to house the setup buttons.
I have looked through the app documentation and I found no way to script-force the buttons into left sidebar tool icons. All I could find was to add some dropdown menus by using XML in the CUSTOM UI but nothing specific that would create a left sidebar new buttons and items.
Is there something I missed and there is a possibility to do it?
Thanks in advance
Best regards
Luis Lima
I stumbled upon this workshop
https://steamcommunity.com/sharedfiles/filedetails/?id=1393821479
in it there's a section of coding under the UI tab that if you modify it then the created floating button can be moved over to the left side. I believe with this you could create your own drop down menus as well. Note I did edit the below line of coding to put the button on the left below the rest of the menu buttons. Hope this helps you achieve what you want.
id="rollerLayout"
height="280"
width="80"
allowDragging="true"
returnToOriginalPositionWhenReleased="false"
rectAlignment="UpperLeft"
offsetXY="00 -525"
>

Full screen switch in ProcessFlow control SAPUI5

The UX guidelines for sap.suite.ui.commons.ProcessFlow mentions of a header toolbar, with the possibility of a 'Full screen' toggle for the entire ProcessFlow control, apart from 'Zoom In', 'Zoom Out' etc. (see top right in the image).
However, the API doesn't have any aggregations to add neither the toggle nor any toolbar.
Is it possible to add a Full screen toggle to ProcessFlow control?
Note that these controls(or toolbar) are not part of Process Flow UI5 Control.
These buttons are places in the header content of sap.m.Page.
Nevertheless, sap.suite.ui.commons.ProcessFlow provides zoomIn() and zoomOut() methods.
And coming to FullScreen thing, you can use sap.m.SplitApp with mode as HideMode.
You can try Combinations here
P.S: Don't always go with screenshots. They could be jazzy and for demo purpose only.
Disclaimer: All opinions are personal. I don't talk on behalf of any employer.

Best way to realize multi page site in Vaadin

I'm working on pretty simple web side that cointains login screen (almost same as in demo presentation, white page with login and password) and main screen with sidebar and navigation bar. How should it be done? My plan is to build main screen using navigation bar, sidebar (just few buttons in layout basicly) and few layouts with content of the webside. On each button click change layout used to create content to another one, for example for Schudele button I'm gonna load layout that contains some tables, for About button plain text. Is it good idea?
So finnaly is should look like this:
init() function decides if user is logged or not and display Login page or Main page, Main Page is builded from modules like navbar, sidebar and content, content depends on sidebar buttons click. I'm right?
Handling it on your own is legit way to start or learn Vaadin. If you have a first grasp of this works out, the most common way to handle such a scenario is the use of the Navigator See the book of Vaadin.
With the Navigator you define Views and give them a name, register them with the Navigator. Then you can navigate your application with the Navigator, it takes care to give you nice ...#!view... URLs so the Users can have bookmarks and navigate your app also e.g. with the back button in the browser.
The Navigator hooks into an event system, where listeners (ViewChangeListener) can react to "before enter" and "leave". The "before enter" can be used to realize auth needs, since they are allowed to object entering a view.

How to create radio buttons and drop down menu bar in Swift (for iOS app development)?

I am beginner in iOS app development and am creating an app where I need to create radio button and drop sown menu bar using swift .
Please suggest me, how could I do that ??
Welcome to SO. In general, this site isn't really suited to "show me how to do <development task>" questions. It's intended for specific technical questions about code you are trying to get working.
I'll take pity on you since this is your first post.
Neither radio buttons nor drop-down menus are standard iOS controls. You should consider using iOS standard user interface elements instead.
The iOS equivalent of radio buttons is a segmented control (UISegementedControl)
The iOS equivalent of a drop-down menu is a UIPickerView.
If you really want radio buttons and drop-down menus you could create them yourself, but as a beginner that is likely over your head. You might want to look for open source components that do what you need. Try checking out CocoaControls. There are lots and lots of custom controls. You can likely find what you're looking for there under a reasonable source license like the MIT license.

Two Page Curl Effect in iPad

I am using the Leaves project to move from one pdf page to another it is working fine. Now the page curl is from left to right and from right to left like a note book. Now the effect was to turn a single page but i want to turn the two pages .one page has to display in left side and another page has to display in right side.
You should probably use UIPageViewController, unless you're trying to support iOS 4. UIPageViewController supports having the spine in the middle of the screen so you can see two pages at once. I don't know if Leaves is relevant anymore since there's a better solution built right into iOS 5 and up.

Resources