Skip to content

sprint 13#8

Open
rfhfv wants to merge 2 commits into
mainfrom
sprint_13
Open

sprint 13#8
rfhfv wants to merge 2 commits into
mainfrom
sprint_13

Conversation

@rfhfv

@rfhfv rfhfv commented Sep 15, 2023

Copy link
Copy Markdown
Owner

No description provided.

@rfhfv rfhfv changed the title  добавила webView.accessibilityIdentifier = "UnsplashWebView" sprint 13 Sep 23, 2023

loadWebView()
presenter?.viewDidLoad()
webView.accessibilityIdentifier = "UnsplashWebView"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Можно выносить константы в private enum Constants

func authURL() -> URL {
var urlComponents = URLComponents(string: configuration.authURLString)!
urlComponents.queryItems = [
URLQueryItem(name: "client_id", value: configuration.accessKey),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Тут также можно вынести константы в отдельный enum

func viewDidLoad() {
let request = authHelper.authRequest()
view?.load(request: request)
didUpdateProgressValue(0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Можно использовать синтаксический сахар
didUpdateProgressValue(.zero)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants