Message Kit controlling which side each image shows up on - ios

I am using the MessageKit to create a real time chat in my Swift App. One issue I am getting is, I want my chat from the user to be on the left, and the chat from the person they are talking to, to be on the right. As of now this is flipped, and I am unsure what function that is being set in, or if this is just default and there isn't a way to change it. I see functions for changing the direction of the bubbles, and avatar location but nothing to quickly fix which side each new message goes on. Can someone help me figure out this issue. Here is what it currently looks like:
But instead I would want the second image to be orange and on the right side, and the orange text to be silver and on the left side. Thanks!
I feel like this should be a quick fix, I am just unsure which like function likely part of the deleagte that I can change, as it is my first time using this messageKit library.

Not sure if this will fix everything but on MessagesDataSource protocol there is isFromCurrentSender
just reverse the return from that and I believe that most of the components use that function for layout.

Related

"Spotify like" dragging bottom player in swift

I would like to have a bar/button at the bottom of my screen that behaves like the mini player bar on Spotify. If I click on it, a view appears from the bottom. If I drag it, I can play with it and make it go up and down. And if I release it, it continues up by itself.
I checked that question: How to animate an object vertically with touch like Spotify's music player does when tapping the song, but it only resizes an (image) view where I want to put a new ViewController (and I cannot drag it, only click it).
I found a project that does that: https://github.com/andriirogulin/ARSlidingPanel and it looks like it works pretty well. It is really something like that that I want to achieve.
My problem is that I have almost no knowledge of objective-C. Moreover I tried to follow the Integration tutorial and I cannot add a custom segue from ARSPContainerController. I need to drague it from an object, and there is none in the sample project. Therefore I would like to know if:
there is a name for this kind of specific bottom bar (for easier research purposes) and the way I would like to use it.
there is a Pod/project that does that in swift.
someone has a sample project that has this behaviour?
Isn't it very close to what Apple Music is doing? If so, you might be able to use this: https://github.com/xxxAIRINxxx/MusicPlayerTransition

Apple Maps Location Marker like in Find Friends App

I have an app where I want the user to place a marker on a map and drag a circle to define a range around that notification, exactly as in Apple's Find Friends App (when you pick one of your friends and subscribe for notifications when he arrives or leaves a certain location).
Looks like this:
The marker can be dragged and moved like always, but the solid circle on the right side is used to define a range around the marker.
Does anyone have an idea on how to implement that? Maybe someone has already implemented something like this and wants to share his code :-).
Thanks.
Ok, I found some very useful sourcecode. Here it is, in case somebody else needs it as well: https://github.com/d0ping/DBMapSelectorViewController

Animation on top of uiviewcontroller like facebook app

The new facebook app has a new feature. There is a little circle in the bottom of a message that means where is the user in the conversation. (hist last seen message).
It is pretty awesome, but i couldn´t figure out how it was developed. I´m pretty sure they created a new cell type, to show where is each user in the conversation. And then, if the user reads it, it just update the table and the user will be in another message that he just read. This would be ok.
But my question is, during this transition, the little circle is animated from the current message to the new position, and the others little circle are animated to make space for the new coming little circle. How is that possible? To animate something on top of a listview?
Thanks in regards,
Can you give me a screenshot of what you're talking about so I can look at it, or give steps to get to the screen you're talking about?
Facebook does some pretty remarkable stuff with iOS. If you want to see some of the crazier things, check out the app Paper that was developed using the Pop Framework. In there you might find some of the UI actions you're looking for.

How can i stack up tiles in iOS programming?

I'm trying to learn iOS programming and I decided to make a game like Connect 4, or some may know it as Four in a row.
I've done the grid and dropping the tiles. However, I haven't been able to stack the tiles on top of each other. I havent tried that much because I have no idea on how i could do something like that as i have never tried making a game like this, I have also searched online but I dont know if it's my choice of wording that it never shows anything or if there isnt anything like it.
I have 7 column on the top, with a hairline where you touch in order to drop the tile to the grid. Right now the tiles just stack on each other.
Not sure if my response is worth to be an answer but what the heck...
If you are set on not getting into Sprite Kit right now, you could probably use UIButton to make this happen. Divide your screen into a grid of UIButtons. You can set the button images according to empty and played (red or blue). Each button code would have to check for things like if the hole (button) was already played, what color chip to display, is this a winning move, etc... There is of course an easier way to do this instead of copying the same code into each button but I'll let you try to figure that one out for now.

iOS: animation icon model "springboard"

I want to know if is possible simulate the little movement of icons in iPhone springboard when I do a long press in one of them. Can you help me?
LOL!
I was at a conference last year and one of the talkers was an ex Apple employee around at the time of creating that icon wobble.
When they were creating it they used a combination of animation of scale, rotation and translation (both up, down and left, right).
When showing it to Steve Jobs he couldn't be satisfied by any of the wobbles that he was shown.
In the end they created some custom sliders (behind the home screen) that he was able to access so that he could customise the animation himself and get it "just right".
I know this doesn't help at all but thought it might be interesting.
Anyway, it looks like the link that Robotic Cat provided in the comments might give you something worth looking at.

Resources