Last active
August 11, 2020 14:29
-
-
Save helbertgs/d4d711e40bfeb77b9938f5614bf730c1 to your computer and use it in GitHub Desktop.
TextStyle
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
@startuml | |
class EdgeStyle << (E, orange) >> { | |
none | |
raised | |
depressed | |
uniform | |
dropShadow | |
--- | |
+ value: CFString | |
} | |
class Alignment << (E, orange) >> { | |
start | |
middle | |
end | |
left | |
right | |
--- | |
+ value: String | |
} | |
enum Direction << (E, orange) >> { | |
ltr | |
rtl | |
--- | |
+ value: String | |
} | |
enum Font << (E, orange) >> { | |
default | |
serif | |
sansSerif | |
monospace | |
proportionalSerif | |
proportionalSansSerif | |
monospaceSerif | |
monospaceSansSerif | |
casual | |
cursive | |
fantasy | |
smallCapital | |
custom(String) | |
--- | |
+ key: String | |
+ value: String | |
} | |
enum TextStyle << (E, orange) >> { | |
characterBackground(UIColor) | |
background(UIColor) | |
foreground(UIColor) | |
fontSize(Int) | |
bold | |
italic | |
underline | |
edge(EdgeStyle) | |
font(Font) | |
alignment(Alignment) | |
direction(Direction) | |
--- | |
+ key: String | |
+ value: AVTextStyleRule | |
} | |
class AVPlayerItem << Extension >> { | |
+ textStyle: [TextStyle] | |
} | |
class UIColor << Extension >> { | |
+ argb: [CGFloat] | |
} | |
class AVFoundationPlayback { | |
+ applySubtitleStyle(with textStyle: [TextStyle]) -> Bool | |
} | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment