This file contains hidden or 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
import UIKit | |
class OnboardingCollectionViewCell: UICollectionViewCell { | |
static let reuseIdentifier = "OnboardingCell" | |
} |
This file contains hidden or 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
import UIKit | |
struct OnboardingModel { | |
let title: String | |
let content: String | |
let iconImage: String | |
let backgroundColor: UIColor | |
let hideButton: Bool | |
} |
This file contains hidden or 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
import UIKit | |
class OnboardingModelFactory { | |
static func getPages() -> [OnboardingModel] { | |
return [ | |
OnboardingModel(title: "Feature 1", | |
content: "Esta feature faz com que o aplicativo faça coisas incríveis!", | |
iconImage: "iconOnboarding1", | |
backgroundColor: Color.lightPurple, |
This file contains hidden or 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
import UIKit | |
class OnboardingCollectionViewController: UICollectionViewController { | |
private let pages = OnboardingModelFactory.getPages() | |
private lazy var pageControl: UIPageControl = { | |
let pageControl = UIPageControl() | |
pageControl.numberOfPages = pages.count | |
return pageControl |
This file contains hidden or 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
import UIKit | |
class OnboardingCollectionViewCell: UICollectionViewCell { | |
static let reuseIdentifier = "OnboardingCell" | |
@IBOutlet weak var pageImage: UIImageView! | |
@IBOutlet weak var pageTitle: UILabel! | |
@IBOutlet weak var pageDescription: UILabel! | |
@IBOutlet weak var startButton: UIButton! |
OlderNewer