Skip to content
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

Open
wants to merge 45 commits into
base: bottomSheet
Choose a base branch
from
Open

Selected events without data #36

wants to merge 45 commits into from

Conversation

linlinich
Copy link
Collaborator

No description provided.

@linlinich linlinich added the Ждет ревью Pull request ждет ревью label May 23, 2023
Comment on lines 10 to 16
// MARK: - Events ViewInput
protocol SelectedEventsModelInput: AnyObject {
}

// MARK: - Events ViewOutput
protocol SelectedEventsModelOutput: AnyObject {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужны эти протоколы?

Copy link
Collaborator Author

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И этот

Comment on lines 24 to 25
private extension SelectedEventsPresenter {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Понадобится?

Comment on lines 33 to 34
extension SelectedEventsPresenter: SelectedEventsModelOutput {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@Devgen8 Devgen8 removed the Ждет ревью Pull request ждет ревью label May 24, 2023
@@ -108,7 +108,8 @@ final class AddingEventViewController: UIViewController {
floor: floor ?? " ",
room: ofice ?? " ",
description: eventDescription ?? " ",
isLiked: false)
isLiked: false,
userID: "22")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Съехал текст

Comment on lines 45 to 46
isLiked: false,
userID: "")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И тут

Comment on lines 108 to 109
let moduleInput: EventsModuleInput?
moduleInput?.loadPlacemarks()
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

completion еще нужно дернуть

@Devgen8 Devgen8 added the Ждет исправлений Pull request ждет исправлений автором label May 27, 2023
@linlinich linlinich added Ждет ревью Pull request ждет ревью and removed Ждет исправлений Pull request ждет исправлений автором labels May 29, 2023
Comment on lines 177 to 178
guard let address = output?.displayAddress() else { return "No address" }
return address
Copy link
Collaborator

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: "")
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем?

Comment on lines +147 to +148
userLocationLayer.isHeadingEnabled = true
userLocationLayer.isHeadingEnabled = false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А это что за трюки?)

Copy link
Collaborator Author

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше названия для objc над методом писать, так более емко получается

Comment on lines 195 to 196
let image =
eventCell.configure(data: data, delegate: self, indexPath: indexPath)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Странно, что на разных строках

@Devgen8 Devgen8 added Ждет исправлений Pull request ждет исправлений автором and removed Ждет ревью Pull request ждет ревью labels May 29, 2023
Ангелина Решетникова and others added 4 commits May 30, 2023 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ждет исправлений Pull request ждет исправлений автором
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants