From 6b542845f387cd17b0d256be03b6c843863fbe4f Mon Sep 17 00:00:00 2001 From: Max Campolo Date: Mon, 5 Dec 2016 11:47:17 -0500 Subject: [PATCH 1/2] Make getter public for SegmentioItem variables --- Segmentio/Source/SegmentioOptions.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Segmentio/Source/SegmentioOptions.swift b/Segmentio/Source/SegmentioOptions.swift index 3473d24..02a1474 100644 --- a/Segmentio/Source/SegmentioOptions.swift +++ b/Segmentio/Source/SegmentioOptions.swift @@ -12,11 +12,11 @@ import UIKit public struct SegmentioItem { - var title: String? - var image: UIImage? - var badgeCount: Int? - var badgeColor: UIColor? - + private(set) public var title: String? + private(set) public var image: UIImage? + private(set) public var badgeCount: Int? + private(set) public var badgeColor: UIColor? + public init(title: String?, image: UIImage?) { self.title = title self.image = image From 50ecb102e7d07042a677dbfde2428c53c7065f17 Mon Sep 17 00:00:00 2001 From: Max Campolo Date: Tue, 6 Dec 2016 09:22:06 -0500 Subject: [PATCH 2/2] Remove private setter --- Segmentio/Source/SegmentioOptions.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Segmentio/Source/SegmentioOptions.swift b/Segmentio/Source/SegmentioOptions.swift index 02a1474..9c6f641 100644 --- a/Segmentio/Source/SegmentioOptions.swift +++ b/Segmentio/Source/SegmentioOptions.swift @@ -12,10 +12,10 @@ import UIKit public struct SegmentioItem { - private(set) public var title: String? - private(set) public var image: UIImage? - private(set) public var badgeCount: Int? - private(set) public var badgeColor: UIColor? + public var title: String? + public var image: UIImage? + public var badgeCount: Int? + public var badgeColor: UIColor? public init(title: String?, image: UIImage?) { self.title = title