@Claude31 Many thanks. So do I need scrollView than if I have more items to place?
Post
Replies
Boosts
Views
Activity
@Claude31 So, If I have 12 items to place in this view, I need to create 12 collection views or just one with 12 elements to look like in the airbnb app?
@Claude31 https://developer.apple.com/documentation/swiftui/picking-container-views-for-your-content - what about this one? It would be perfect for me I think. I will try both way. Do you think that is a good solution for that? It does not need to be one layer on another.
@Claude31 - Ok I have managed to do that. Thank you.
@Claude31 I have defined TableTableViewCell as a class for cell - I showed it in my question. label in TableTableViewCell is the name of the cell.
@Claude31 How it is defined? I have sth like this: let cell=tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath as IndexPath) as! TableTableViewCell
It works perfect, thanks
@Claude31 I tried this one before, but I got Value of type 'MKPointAnnotation' has no member 'annotation'
@OOPer - do you know how to display annotation name (annotation.title) as destination name in maps? In the forum they are managed to do that. In my case, when app opens map app, the directon is Unknown Location.
@OOPer Thank you for your solution. Maybe you know if there is an option to choose opening it in apple maps and google maps? Is it a lot of work to do?
yes, I have restarted Xcode and it works - sth was stucked with an error on xcode.
@Clause31 No I wont do that this way. I do not want to open links. I would like to do this like here: https://www.raywenderlich.com/7738344-mapkit-tutorial-getting-started - In the part Handling callout he provides some code to create directions from current location to the annotation from his map. As i spotted he uses maps app to do that.
Yes, thank you. Is it normal that when user choose allow once, current location disappears in couple of seconds when app is in background? I've got location in background option checked in project settings and it works fine with Allow while using the app. but not with Allow once
@Cluade31 I dont want to just open the map. I want to provide directions form my location to the annotation in maps. I would like to navigate user from his current location to the annotation which is tapped by this left button.
Hi, thanks, that is what I've did.