-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selected events without data #36
base: bottomSheet
Are you sure you want to change the base?
Conversation
// MARK: - Events ViewInput | ||
protocol SelectedEventsModelInput: AnyObject { | ||
} | ||
|
||
// MARK: - Events ViewOutput | ||
protocol SelectedEventsModelOutput: AnyObject { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нужны эти протоколы?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это на будущее
import Foundation | ||
|
||
// MARK: - Events ViewInput | ||
protocol SelectedEventsModuleInput: AnyObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И этот
private extension SelectedEventsPresenter { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Понадобится?
extension SelectedEventsPresenter: SelectedEventsModelOutput { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
@@ -108,7 +108,8 @@ final class AddingEventViewController: UIViewController { | |||
floor: floor ?? " ", | |||
room: ofice ?? " ", | |||
description: eventDescription ?? " ", | |||
isLiked: false) | |||
isLiked: false, | |||
userID: "22") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Съехал текст
isLiked: false, | ||
userID: "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И тут
let moduleInput: EventsModuleInput? | ||
moduleInput?.loadPlacemarks() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А в чем идея? moduleInput всегда nil будет
@@ -51,12 +51,17 @@ final class EventsService: EventsServiceDescription { | |||
} | |||
func storeAddingData(event: Event, coordinatesId: String, completion: @escaping (Result<Event, Error>) -> Void) { | |||
var ref: DocumentReference? | |||
guard let userID = FBManager.auth.currentUser?.uid else { | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
completion еще нужно дернуть
Events module
JRNS-28: Stuff list addition to trips
JRNS: Theme bug fix
JRNS-48: Added account avatar
JRNS-46: Dark theme and weather CollectionView reload fixes
JRNS-53: Map dark theme
open EventVC on tap MapCell
Lost some files fix
JRNS-45: Alerts localization
guard let address = output?.displayAddress() else { return "No address" } | ||
return address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output?.displayAddress() ?? "No address"
service.storeAddingData(event: newEvent, coordinatesId: coordinatesId) { [weak self] result in | ||
guard let strongSelf = self else { return } | ||
isLiked: false, | ||
userID: "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему в userId всегда какие-то рандомные значения передаются?)
@@ -4,13 +4,13 @@ | |||
// | |||
// Created by Ангелина Решетникова on 25.04.2023. | |||
// | |||
|
|||
import FirebaseFirestore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем?
userLocationLayer.isHeadingEnabled = true | ||
userLocationLayer.isHeadingEnabled = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А это что за трюки?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
очень похоже на трюки, то эта штука переносит тебя в твое местоположение поэтому я включаю она переносит и выключаю
@@ -99,6 +158,34 @@ class EventsViewController: UIViewController { | |||
private func didTapFavouritesButton() { | |||
output?.didTapFavouritesButton() | |||
} | |||
//MARK: YMKUserLocationObjectListener protocol | |||
|
|||
@objc(onObjectAddedWithView:) func onObjectAdded(with view: YMKUserLocationView) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше названия для objc над методом писать, так более емко получается
let image = | ||
eventCell.configure(data: data, delegate: self, indexPath: indexPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Странно, что на разных строках
No description provided.