-
Notifications
You must be signed in to change notification settings - Fork 383
[Settings] [Issue #1927] Added Rate on App Store cell #1939
Conversation
…ttings which links to app store rather than in-app rating
| onAccounts() | ||
| } else if cell === githubStatusCell { | ||
| onGitHubStatus() | ||
| }else if cell === reivewOnAppStoreCell { |
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.
Nit: space before else.
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.
Got it. @BasThomas Whats Nit stand for?
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.
It’s defined here as a “minor shortcoming”. In this case that it doesn’t really need fixing, but it would be nice.
| presentSafari(url: url) | ||
| } | ||
|
|
||
| func onReivewOnAppStore() { |
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.
onReviewOnAppStore*
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.
Whoops. My bad.
| guard let url = URL(string: "itms-apps://itunes.apple.com/us/app/githawk-for-github/id1252320249") | ||
| else { fatalError("Should always be valid app store URL") } | ||
| if UIApplication.shared.canOpenURL(url) { | ||
| UIApplication.shared.open(url, options: [:], completionHandler: nil) |
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.
Nit: you can omit the options and completionHandler parameter as they default to [:] and nil respectively.
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.
Makes sense.
…awkApp#1939) * [Settings] [Issue GitHawkApp#1927] Added Rate on App Store cell in Settings which links to app store rather than in-app rating * Fixed wording and spacing
* 'master' of https://github.com/GitHawkApp/GitHawk: (246 commits) [Settings] [Issue #1927] Added Rate on App Store cell (#1939) Add space when replying to issue comment (#1959) Initial ContextMenu cells made accessibility buttons (#1951) README: Update outdated repo URL (#1946) Rewrote the Setup/Getting started page to help contributors get the GitHawk project set up. (#1937) fix selection bug (#1932) add haptics on menu (#1933) add done button to menu VCs (#1934) add insets to issue with new button design (#1935) When there’s no unread messagee, disable mark all as read (#1919) fix crash from management refactor (#1915) New ContextMenu UX for managing Issues & PRs (#1912) Update to latest ContextMenu (#1914) Update MessageViewController (#1913) Update StyledTextKit with layout revert (#1911) Update Squawk (#1910) Updated StyledTextKit (#1909) dims non-actionable subviews in notification cell (#1908) reorders read/watch buttons (#1906) Migrate Toast component to new Squawk CocoaPod library (#1900) ...
Storyboard changes are due to the new cell addition. Y pos of each cell in 2nd section were moved down as the new cell was placed on the very top.