mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update circle text to support 4 letter codes
This commit is contained in:
parent
cbd6b2c242
commit
d49daa0f57
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ struct CircleText: View {
|
|||
var text: String
|
||||
var color: Color
|
||||
var circleSize: CGFloat? = 60
|
||||
var fontSize: CGFloat? = 22
|
||||
var fontSize: CGFloat? = 20
|
||||
|
||||
var body: some View {
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class PositionAnnotation: NSObject, MKAnnotation {
|
|||
|
||||
class PositionAnnotationView: MKAnnotationView {
|
||||
|
||||
private let annotationFrame = CGRect(x: 0, y: 0, width: 32, height: 32)
|
||||
private let annotationFrame = CGRect(x: 0, y: 0, width: 40, height: 40cen)
|
||||
private let label: UILabel
|
||||
|
||||
override init(annotation: MKAnnotation?, reuseIdentifier: String?) {
|
||||
|
|
@ -52,7 +52,7 @@ class PositionAnnotationView: MKAnnotationView {
|
|||
override func draw(_ rect: CGRect) {
|
||||
guard let context = UIGraphicsGetCurrentContext() else { return }
|
||||
|
||||
let circleRect = CGRect(x: 1, y: 1, width: 30, height: 30)
|
||||
let circleRect = CGRect(x: 1, y: 1, width: 38, height: 38)
|
||||
|
||||
context.setFillColor(CGColor(red: 0, green: 0.5, blue: 1.0, alpha: 1.0))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue