From eb94ea0d43150191b19f1312572062d2433ca945 Mon Sep 17 00:00:00 2001 From: Alexandru Tudose Date: Tue, 26 Feb 2019 13:11:00 +0200 Subject: [PATCH] Updated readme and increased version. --- README.md | 34 ++++++++++++++++++++++++++++ Resources/Image_with_attributes.png | Bin 0 -> 16722 bytes TTSegmentedControl.podspec | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 Resources/Image_with_attributes.png diff --git a/README.md b/README.md index c1ee320..3c7895a 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,41 @@ segmentedControl.useShadow = true ``` +You can add image instead of title. +![](Resources/Image_with_attributes.png) + +```swift +// ask segmented control to initialize all elements internally +segmentedControl.layoutSubviews() + +let imageAttachment = NSTextAttachment() +imageAttachment.image = image +imageAttachment.bounds = CGRect(x: 0, y: -5, width: 20, height: 20) + +let attributes = NSAttributedString(attachment: imageAttachment) + +segmentedControl.changeAttributedTitle(attributes, selectedTile: attributes, atIndex: atIndex) +``` + +Or combine them. + +```swift +// ask segmented control to initialize all elements internally +segmentedControl.layoutSubviews() + +let imageAttachment = NSTextAttachment() +imageAttachment.image = image +imageAttachment.bounds = CGRect(x: 0, y: -5, width: 20, height: 20) + +let attributes = segmentedControl.attributedDefaultTitles.first?.mutableCopy() as! NSMutableAttributedString +attributes.append(NSAttributedString(attachment: imageAttachment)) + +let selectedAttributes = segmentedControl.attributedSelectedTitles.first?.mutableCopy() as! NSMutableAttributedString +selectedAttributes.append(NSAttributedString(attachment: imageAttachment)) + +segmentedControl.changeAttributedTitle(attributes, selectedTile: selectedAttributes, atIndex: atIndex) +``` ## Contribution Feel free to Fork, submit Pull Requests or send us your feedback and suggestions! diff --git a/Resources/Image_with_attributes.png b/Resources/Image_with_attributes.png new file mode 100644 index 0000000000000000000000000000000000000000..19dfb232fda1cf3ac607556c910b7fe716bbbc54 GIT binary patch literal 16722 zcmeIZWl-G9@;?j&cL)}Aad&rzAi*Jca9>=5dvJHR;KAL4d+^2GEkJPlFX!BI?yd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79teD*$!h$gN{_3asKC+P~6b!0{Zv-Sts!q@+cM|L=nUrFYPm7jg^@XZm9! z%q9NibCeSDYA!jraJML_w7Y0r7bTu&aZ#jZ2>v}&aTm5vT~2a{ioMr zc5CP7Roy6bk#t|u)}MHVS*M-Dh>U}7HQ;9y;WVKrRe3Ev9>HGzhNY%p50S<1vgsxe<{>5AnHICg82bzC}<1yNrhJLl>TbK z-(%so6nd(P{4{|>9$)c4N`WC^6p*ws>@qt0|LwIOz|)G=p7NpCzYk8#;=woEX@!+e z|BiuKWH1}&Rf%)no8o^Zb{X($MSgm|<=-J?6#`~U_fTt9`gh=_QGf#jmF2PSzigaf zG^)zD0G(dRKT37WW5&jFB-Fbw{mYgPjwhvN#7Rtl_qR9P7u8$$mRaIU`G-wp936aM z!X6`w`&Xy?%b*G1xqO@gnDy6#hBv)(&ETJW?J#xDNO(Swy*(V0kyMcQA!ZQp{{WXq BK6n5C literal 0 HcmV?d00001 diff --git a/TTSegmentedControl.podspec b/TTSegmentedControl.podspec index b776068..c703bb8 100644 --- a/TTSegmentedControl.podspec +++ b/TTSegmentedControl.podspec @@ -7,7 +7,7 @@ s.license = 'MIT' s.name = "TTSegmentedControl" s.summary = "An elegant, animated and customizable segmented control for iOS." s.requires_arc = true -s.version = "0.4.7" +s.version = "0.4.8" s.author = { "Igor Dumitru" => "igor.dumitru@tapptitude.com" } s.homepage = "https://tapptitude.com/" s.framework = "UIKit"