forked from wordpress-mobile/WordPress-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wordpress-mobile#18298 from wordpress-mobile/task/…
…ab-test-site-name [Site Name] A/B Test the site name screen
- Loading branch information
Showing
10 changed files
with
238 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
WordPress/Classes/ViewRelated/Site Creation/Site Name/SiteNameStep.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Foundation | ||
|
||
/// Site Creation: Allows creation of the site's name. | ||
final class SiteNameStep: WizardStep { | ||
weak var delegate: WizardDelegate? | ||
private let creator: SiteCreator | ||
|
||
private(set) lazy var content: UIViewController = { | ||
return SiteNameViewController(creator: creator) | ||
}() | ||
|
||
init(creator: SiteCreator) { | ||
self.creator = creator | ||
} | ||
|
||
private func didSet(name: String?) { | ||
if let name = name { | ||
let currentTagline = creator.information?.tagLine | ||
creator.information = SiteInformation(title: name, tagLine: currentTagline) | ||
} | ||
|
||
delegate?.nextStep() | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
WordPress/Classes/ViewRelated/Site Creation/Wizard/SiteCreationStep.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Foundation | ||
|
||
enum SiteCreationStep { | ||
case address | ||
case design | ||
case intent | ||
case name | ||
case segments | ||
case siteAssembly | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
WordPress/Classes/ViewRelated/Site Creation/Wizard/SiteIntentAB.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
WordPress/WordPressTest/SiteCreation/SiteCreationIntentTests.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.