Skip to content

Instantly share code, notes, and snippets.

@helbertgs
Last active August 11, 2020 14:29
Show Gist options
  • Save helbertgs/d4d711e40bfeb77b9938f5614bf730c1 to your computer and use it in GitHub Desktop.
Save helbertgs/d4d711e40bfeb77b9938f5614bf730c1 to your computer and use it in GitHub Desktop.
TextStyle
@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