Skip to content

Commit

Permalink
default style initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
jopolaz committed Jan 6, 2021
1 parent fd06e2f commit d452213
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/YLOnBoarding/YLOnBoarding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

import SwiftUI

struct YLOnBoarding: View {
public struct YLOnBoarding: View {

let title: String
let style: YLOnBoardingStyle
var style: YLOnBoardingStyle = YLOnBoardingStyle()
let items: [YLOnBoardingItem]

var body: some View {
public var body: some View {
VStack {
Text(title)
.font(.largeTitle)
Expand Down
4 changes: 2 additions & 2 deletions Sources/YLOnBoarding/YLOnBoardingItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

import Foundation

struct YLOnBoardingItem: Decodable {
public struct YLOnBoardingItem: Decodable {
let icon: String
let title: String
var description: String = ""
}


extension YLOnBoardingItem: Identifiable {
var id: UUID { return UUID() }
public var id: UUID { return UUID() }
}
2 changes: 1 addition & 1 deletion Sources/YLOnBoarding/YLOnBoardingStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import SwiftUI

struct YLOnBoardingStyle {
public struct YLOnBoardingStyle {
var mainColor : Color = .black
var accentColor : Color = .blue
}

0 comments on commit d452213

Please sign in to comment.