-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmartSegmentedControlSwift.podspec
More file actions
35 lines (28 loc) · 2.16 KB
/
SmartSegmentedControlSwift.podspec
File metadata and controls
35 lines (28 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# Be sure to run `pod lib lint SmartSegmentedControlSwift.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'SmartSegmentedControlSwift'
s.version = '0.1.1'
s.summary = 'UISegmentedControl replacement which provides more accurate segments width management'
s.description = <<-DESC
This control was created to solve issue, that native UISegmentedControl has. Reffer to SmartSegmentedControl for obj-c version.
UISegmentedControl has issue with apportionsSegmentWidthsByContent setting (adjust segments width proportionally to content). Often, it appears that control bounds are wider, than actual segments width.
With SmartSegmentedControl issue is fixed.
Also, SmartSegmentedControl introduces “smart” mode, where, if there is enough room, every segment, that needs to be wider than average width, gets enough room to display content (which is usually less then in proportional mode). If there is no enough room for all content - segments width is distributed proportionally (fixed, of course :) ).
NOTE. SmartSegmentedControl is designed and test only to work with segments with titles, not with images.
DESC
s.homepage = 'https://github.com/svilon/SmartSegmentedControlSwift'
s.screenshots = 'https://github.com/svilon/SmartSegmentedControlSwift/blob/master/Screens/Example_app.png?raw=true', 'https://github.com/svilon/SmartSegmentedControlSwift/blob/master/Screens/UISegmentedControl.png?raw=true', 'https://github.com/svilon/SmartSegmentedControlSwift/blob/master/Screens/SmartSegmentedControl.png?raw=true'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Eugene Shevtsov' => 'i.i.shevtsov@gmail.com' }
s.source = { :git => 'https://github.com/svilon/SmartSegmentedControlSwift.git', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.module_name = 'SmartSegmentedControl'
s.source_files = 'SmartSegmentedControlSwift/Classes/**/*'
s.frameworks = 'UIKit'
end