-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dumitru Igor
committed
Mar 16, 2023
1 parent
e22859b
commit 6cbe53e
Showing
24 changed files
with
609 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ControlExample/TTSegmentedControlExample/Assets.xcassets/account-2.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "account-2@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "account-2@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+606 Bytes
...e/TTSegmentedControlExample/Assets.xcassets/account-2.imageset/account-2@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+823 Bytes
...e/TTSegmentedControlExample/Assets.xcassets/account-2.imageset/account-2@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
...ControlExample/TTSegmentedControlExample/Assets.xcassets/billing-2.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "billing-2@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "billing-2@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+360 Bytes
...e/TTSegmentedControlExample/Assets.xcassets/billing-2.imageset/billing-2@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+341 Bytes
...e/TTSegmentedControlExample/Assets.xcassets/billing-2.imageset/billing-2@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
...ontrolExample/TTSegmentedControlExample/Assets.xcassets/settings-2.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "settings-2@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "settings-2@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+985 Bytes
...TTSegmentedControlExample/Assets.xcassets/settings-2.imageset/settings-2@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.46 KB
...TTSegmentedControlExample/Assets.xcassets/settings-2.imageset/settings-2@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
Example/TTSegmentedControlExample/TTSegmentedControlExample/Extensions/UIFont+Name.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// UIFont+Name.swift | ||
// TTSegmentedControlExample | ||
// | ||
// Created by Igor Dumitru on 15.03.2023. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIFont { | ||
struct SFProText { | ||
static func medium(size: CGFloat) -> UIFont { | ||
UIFont.init(name: "SFProText-Medium", size: size)! | ||
} | ||
} | ||
|
||
struct PTSerif { | ||
static func bold(size: CGFloat) -> UIFont { | ||
UIFont.init(name: "PTSerif-Bold", size: size)! | ||
} | ||
} | ||
|
||
struct BeauRivage { | ||
static func regular(size: CGFloat) -> UIFont { | ||
UIFont.init(name: "BeauRivage-Regular", size: size)! | ||
} | ||
} | ||
|
||
struct DeliusSwashCaps { | ||
static func regular(size: CGFloat) -> UIFont { | ||
UIFont.init(name: "DeliusSwashCaps-Regular", size: size)! | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+233 KB
...TSegmentedControlExample/TTSegmentedControlExample/Resources/Fonts/BeauRivage-Regular.ttf
Binary file not shown.
Binary file added
BIN
+59.1 KB
...entedControlExample/TTSegmentedControlExample/Resources/Fonts/DeliusSwashCaps-Regular.ttf
Binary file not shown.
Binary file added
BIN
+332 KB
Example/TTSegmentedControlExample/TTSegmentedControlExample/Resources/Fonts/PTSerif-Bold.ttf
Binary file not shown.
Binary file added
BIN
+443 KB
.../TTSegmentedControlExample/TTSegmentedControlExample/Resources/Fonts/SFProText-Medium.ttf
Binary file not shown.
Oops, something went wrong.