Skip to content

Commit d3bedaf

Browse files
committed
Removed revsersible APIs for the initial release
1 parent 2dc61e2 commit d3bedaf

1 file changed

Lines changed: 4 additions & 71 deletions

File tree

TOSegmentedControl/TOSegmentedControl.h

Lines changed: 4 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Copyright © 2019 Tim Oliver. All rights reserved.
77
//
88

9+
#import <Foundation/Foundation.h>
910
#import <UIKit/UIKit.h>
1011

1112
NS_ASSUME_NONNULL_BEGIN
@@ -79,16 +80,6 @@ IB_DESIGNABLE @interface TOSegmentedControl : UIControl
7980
*/
8081
- (void)setImage:(UIImage *)image forItemAtIndex:(NSInteger)index;
8182

82-
/**
83-
Sets the content of a given segment to an image and optionally makes
84-
it reversible.
85-
86-
@param image The image to set.
87-
@param reversible Whether the item can be tapped again to indicate changing order.
88-
@param index The index of the segment to set.
89-
*/
90-
- (void)setImage:(UIImage *)image reversible:(BOOL)reversible forItemAtIndex:(NSInteger)index;
91-
9283
/**
9384
Returns the image that was assigned to a specific segment.
9485
Will return nil if the content at that segment is not an image.
@@ -105,16 +96,6 @@ IB_DESIGNABLE @interface TOSegmentedControl : UIControl
10596
*/
10697
- (void)setTitle:(NSString *)title forItemAtIndex:(NSInteger)index;
10798

108-
/**
109-
Sets the content of a given segment to a text label and optionally makes
110-
it reversible.
111-
112-
@param title The text to display at the segment.
113-
@param reversible Whether the item can be tapped again to indicate changing order.
114-
@param index The index of the segment to set.
115-
*/
116-
- (void)setTitle:(NSString *)title reversible:(BOOL)reversible forItemAtIndex:(NSInteger)index;
117-
11899
/**
119100
Returns the string of the title that was assigned to a specific segment.
120101
Will return nil if the content at that segment is not a string.
@@ -123,37 +104,6 @@ Will return nil if the content at that segment is not a string.
123104
*/
124105
- (nullable NSString *)titleForItemAtIndex:(NSInteger)index;
125106

126-
/**
127-
Sets whether a specific segment is reverisble.
128-
This will display a small arrow icon next to it.
129-
130-
@param reversible Whether the item is reversible or not.
131-
@param index The index of the segment we are targeting.
132-
*/
133-
- (void)setReversible:(BOOL)reversible forItemAtIndex:(NSInteger)index;
134-
135-
/**
136-
Returns whether a given segment is reversible.
137-
138-
@param index The index to check.
139-
*/
140-
- (BOOL)isReversibleForItemAtIndex:(NSInteger)index;
141-
142-
/**
143-
Sets whether a specific segment is currently reversed or not.
144-
145-
@param reversed Whether the item is currently reversed or not.
146-
@param index The index of the segment we are targeting.
147-
*/
148-
- (void)setReversed:(BOOL)reversed forSegmentAtIndex:(NSInteger)index animated:(BOOL)animated;
149-
150-
/**
151-
Returns whether a given segment is currently reveresed
152-
153-
@param index The index to check.
154-
*/
155-
- (BOOL)isReversedForItemAtIndex:(NSInteger)index;
156-
157107
/**
158108
Inserts a new image item at the specified segment index.
159109
@@ -162,16 +112,6 @@ Returns whether a given segment is currently reveresed
162112
*/
163113
- (void)insertItemWithImage:(UIImage *)image atIndex:(NSInteger)index;
164114

165-
/**
166-
Inserts a new image item at the specified segment index, and optionally
167-
may be made reversible.
168-
169-
@param image The image to set.
170-
@param reversible Whether the item can be tapped again to toggle ordering.
171-
@param index The index of the segment to which the image will be set.
172-
*/
173-
- (void)insertItemWithImage:(UIImage *)image reversible:(BOOL)reversible atIndex:(NSInteger)index;
174-
175115
/**
176116
Inserts a new image title at the specified segment index.
177117
@@ -180,16 +120,6 @@ Inserts a new image title at the specified segment index.
180120
*/
181121
- (void)insertItemWithTitle:(NSString *)title atIndex:(NSInteger)index;
182122

183-
/**
184-
Inserts a new image title at the specified segment index, and optionally
185-
may be made reversible.
186-
187-
@param title The title to set.
188-
@param reversible Whether the item can be tapped again to toggle ordering.
189-
@param index The index of the segment to which the image will be set.
190-
*/
191-
- (void)insertItemWithTitle:(NSString *)title reversible:(BOOL)reversible atIndex:(NSInteger)index;
192-
193123
/**
194124
Removes the item at the specified index.
195125
@@ -220,3 +150,6 @@ Removes the item at the specified index.
220150
@end
221151

222152
NS_ASSUME_NONNULL_END
153+
154+
FOUNDATION_EXPORT double TOSegmentedControlFrameworkVersionNumber;
155+
FOUNDATION_EXPORT const unsigned char TOSegmentedControlFrameworkVersionString[];

0 commit comments

Comments
 (0)