/SegmentDisplay

📟 7 Segment Display in SwiftUI

Primary LanguageSwift

SegmentDisplay

⚠️ This project is not complete yet!

Preview

sample-image

Usage

import SegmentDisplay

struct ContentView: View {
    @State var num = 300

    var body: some View {
        SegmentDisplay(digits: 3, num: $num)
    }
}
import SegmentDisplay

struct ContentView: View {
    @State var num = 5

    var body: some View {
        Segment(num: $num)
    }
}

Todo

  • italic
  • acccentColor Modifier
  • style variation(flat, ~~ round ~~)

7-segment-display-diagram