forked from zelo72/mastodon-ios
chore: resolve requested changes
This commit is contained in:
parent
9d0c0fae90
commit
85ceb48003
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
0FAA0FDF25E0B57E0017CCDE /* WelcomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA0FDE25E0B57E0017CCDE /* WelcomeViewController.swift */; };
|
0FAA0FDF25E0B57E0017CCDE /* WelcomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA0FDE25E0B57E0017CCDE /* WelcomeViewController.swift */; };
|
||||||
0FAA101225E105390017CCDE /* MasActionButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA101125E105390017CCDE /* MasActionButton.swift */; };
|
0FAA101225E105390017CCDE /* PrimaryActionButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA101125E105390017CCDE /* PrimaryActionButton.swift */; };
|
||||||
0FAA101C25E10E760017CCDE /* UIFont.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA101B25E10E760017CCDE /* UIFont.swift */; };
|
0FAA101C25E10E760017CCDE /* UIFont.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA101B25E10E760017CCDE /* UIFont.swift */; };
|
||||||
0FAA102725E1126A0017CCDE /* PickServerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA102625E1126A0017CCDE /* PickServerViewController.swift */; };
|
0FAA102725E1126A0017CCDE /* PickServerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FAA102625E1126A0017CCDE /* PickServerViewController.swift */; };
|
||||||
18BC7629F65E6DB12CB8416D /* Pods_Mastodon_MastodonUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C030226D3C73DCC23D67452 /* Pods_Mastodon_MastodonUITests.framework */; };
|
18BC7629F65E6DB12CB8416D /* Pods_Mastodon_MastodonUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C030226D3C73DCC23D67452 /* Pods_Mastodon_MastodonUITests.framework */; };
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
0FAA0FDE25E0B57E0017CCDE /* WelcomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeViewController.swift; sourceTree = "<group>"; };
|
0FAA0FDE25E0B57E0017CCDE /* WelcomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeViewController.swift; sourceTree = "<group>"; };
|
||||||
0FAA101125E105390017CCDE /* MasActionButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MasActionButton.swift; sourceTree = "<group>"; };
|
0FAA101125E105390017CCDE /* PrimaryActionButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrimaryActionButton.swift; sourceTree = "<group>"; };
|
||||||
0FAA101B25E10E760017CCDE /* UIFont.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIFont.swift; sourceTree = "<group>"; };
|
0FAA101B25E10E760017CCDE /* UIFont.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIFont.swift; sourceTree = "<group>"; };
|
||||||
0FAA102625E1126A0017CCDE /* PickServerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PickServerViewController.swift; sourceTree = "<group>"; };
|
0FAA102625E1126A0017CCDE /* PickServerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PickServerViewController.swift; sourceTree = "<group>"; };
|
||||||
2D04F42425C255B9003F936F /* APIService+PublicTimeline.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "APIService+PublicTimeline.swift"; sourceTree = "<group>"; };
|
2D04F42425C255B9003F936F /* APIService+PublicTimeline.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "APIService+PublicTimeline.swift"; sourceTree = "<group>"; };
|
||||||
|
@ -449,7 +449,7 @@
|
||||||
DB5086A425CC0B7000C2C187 /* AvatarBarButtonItem.swift */,
|
DB5086A425CC0B7000C2C187 /* AvatarBarButtonItem.swift */,
|
||||||
2D42FF8425C8224F004A627A /* HitTestExpandedButton.swift */,
|
2D42FF8425C8224F004A627A /* HitTestExpandedButton.swift */,
|
||||||
2D5A3D1025CF87AA002347D6 /* AvatarBarButtonItem.swift */,
|
2D5A3D1025CF87AA002347D6 /* AvatarBarButtonItem.swift */,
|
||||||
0FAA101125E105390017CCDE /* MasActionButton.swift */,
|
0FAA101125E105390017CCDE /* PrimaryActionButton.swift */,
|
||||||
);
|
);
|
||||||
path = Button;
|
path = Button;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -1244,7 +1244,7 @@
|
||||||
2D61335E25C1894B00CAE157 /* APIService.swift in Sources */,
|
2D61335E25C1894B00CAE157 /* APIService.swift in Sources */,
|
||||||
2D38F1F725CD47AC00561493 /* HomeTimelineViewModel+LoadOldestState.swift in Sources */,
|
2D38F1F725CD47AC00561493 /* HomeTimelineViewModel+LoadOldestState.swift in Sources */,
|
||||||
2D5A3D3825CF8D9F002347D6 /* ScrollViewContainer.swift in Sources */,
|
2D5A3D3825CF8D9F002347D6 /* ScrollViewContainer.swift in Sources */,
|
||||||
0FAA101225E105390017CCDE /* MasActionButton.swift in Sources */,
|
0FAA101225E105390017CCDE /* PrimaryActionButton.swift in Sources */,
|
||||||
DB8AF53025C13561002E6C99 /* AppContext.swift in Sources */,
|
DB8AF53025C13561002E6C99 /* AppContext.swift in Sources */,
|
||||||
2D38F1F125CD477D00561493 /* HomeTimelineViewModel+LoadMiddleState.swift in Sources */,
|
2D38F1F125CD477D00561493 /* HomeTimelineViewModel+LoadMiddleState.swift in Sources */,
|
||||||
DB45FAD725CA6C76005A8AC7 /* UIBarButtonItem.swift in Sources */,
|
DB45FAD725CA6C76005A8AC7 /* UIBarButtonItem.swift in Sources */,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
// MARK: -Convinience view creation method
|
// MARK: - Convinience view creation method
|
||||||
extension UIView {
|
extension UIView {
|
||||||
|
|
||||||
static var separatorLine: UIView {
|
static var separatorLine: UIView {
|
||||||
|
@ -26,7 +26,7 @@ extension UIView {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: -Convinience view appearance modification method
|
// MARK: - Convinience view appearance modification method
|
||||||
extension UIView {
|
extension UIView {
|
||||||
@discardableResult
|
@discardableResult
|
||||||
func applyCornerRadius(radius: CGFloat) -> Self {
|
func applyCornerRadius(radius: CGFloat) -> Self {
|
||||||
|
|
|
@ -26,8 +26,10 @@ internal enum L10n {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
internal enum Label {
|
internal enum Label {
|
||||||
|
/// Pick a server,\nany server.
|
||||||
|
internal static let pickAServer = L10n.tr("Localizable", "Common.Label.PickAServer")
|
||||||
/// Social networking\nback in your hands.
|
/// Social networking\nback in your hands.
|
||||||
internal static let slogon = L10n.tr("Localizable", "Common.Label.Slogon")
|
internal static let slogan = L10n.tr("Localizable", "Common.Label.Slogan")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
"Common.Controls.Timeline.LoadMore" = "Load More";
|
"Common.Controls.Timeline.LoadMore" = "Load More";
|
||||||
"Common.Label.Slogon" = "Social networking\nback in your hands.";
|
"Common.Label.Slogan" = "Social networking\nback in your hands.";
|
||||||
"Common.Label.PickAServer" = "Pick a server,\nany server.";
|
"Common.Label.PickAServer" = "Pick a server,\nany server.";
|
||||||
|
|
||||||
"Button.SignUp" = "Sign Up";
|
"Button.SignUp" = "Sign Up";
|
||||||
|
|
|
@ -12,7 +12,7 @@ class PickServerViewController: UIViewController {
|
||||||
let label = UILabel()
|
let label = UILabel()
|
||||||
label.font = .boldSystemFont(ofSize: 34)
|
label.font = .boldSystemFont(ofSize: 34)
|
||||||
label.textColor = Asset.Colors.Label.black.color
|
label.textColor = Asset.Colors.Label.black.color
|
||||||
label.text = L10n.Common.Label.slogon
|
label.text = L10n.Common.Label.slogan
|
||||||
label.adjustsFontForContentSizeCategory = true
|
label.adjustsFontForContentSizeCategory = true
|
||||||
label.translatesAutoresizingMaskIntoConstraints = false
|
label.translatesAutoresizingMaskIntoConstraints = false
|
||||||
label.numberOfLines = 0
|
label.numberOfLines = 0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// MasActionButton.swift
|
// PrimaryActionButton.swift
|
||||||
// Mastodon
|
// Mastodon
|
||||||
//
|
//
|
||||||
// Created by 高原 on 2021/2/20.
|
// Created by 高原 on 2021/2/20.
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
class MasActionButton: UIButton {
|
class PrimaryActionButton: UIButton {
|
||||||
override init(frame: CGRect) {
|
override init(frame: CGRect) {
|
||||||
super.init(frame: frame)
|
super.init(frame: frame)
|
||||||
_init()
|
_init()
|
||||||
|
@ -19,7 +19,7 @@ class MasActionButton: UIButton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension MasActionButton {
|
extension PrimaryActionButton {
|
||||||
private func _init() {
|
private func _init() {
|
||||||
titleLabel?.font = .preferredFont(forTextStyle: .headline)
|
titleLabel?.font = .preferredFont(forTextStyle: .headline)
|
||||||
setTitleColor(Asset.Colors.lightWhite.color, for: .normal)
|
setTitleColor(Asset.Colors.lightWhite.color, for: .normal)
|
|
@ -18,15 +18,15 @@ final class WelcomeViewController: UIViewController {
|
||||||
let label = UILabel()
|
let label = UILabel()
|
||||||
label.font = UIFontMetrics(forTextStyle: .largeTitle).scaledFont(for: UIFont.boldSystemFont(ofSize: 34))
|
label.font = UIFontMetrics(forTextStyle: .largeTitle).scaledFont(for: UIFont.boldSystemFont(ofSize: 34))
|
||||||
label.textColor = Asset.Colors.Label.black.color
|
label.textColor = Asset.Colors.Label.black.color
|
||||||
label.text = L10n.Common.Label.slogon
|
label.text = L10n.Common.Label.slogan
|
||||||
label.adjustsFontForContentSizeCategory = true
|
label.adjustsFontForContentSizeCategory = true
|
||||||
label.translatesAutoresizingMaskIntoConstraints = false
|
label.translatesAutoresizingMaskIntoConstraints = false
|
||||||
label.numberOfLines = 0
|
label.numberOfLines = 0
|
||||||
return label
|
return label
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let signUpButton: MasActionButton = {
|
let signUpButton: PrimaryActionButton = {
|
||||||
let button = MasActionButton(type: .system)
|
let button = PrimaryActionButton(type: .system)
|
||||||
button.setTitle(L10n.Button.signUp, for: .normal)
|
button.setTitle(L10n.Button.signUp, for: .normal)
|
||||||
button.translatesAutoresizingMaskIntoConstraints = false
|
button.translatesAutoresizingMaskIntoConstraints = false
|
||||||
return button
|
return button
|
||||||
|
|
Loading…
Reference in New Issue