Skip to content

Commit

Permalink
fix: use Window type for window Event field
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 15, 2024
1 parent 4262768 commit f6e5880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftWebUI/SwiftWebUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ public final class Window {
public struct Event {
let cStruct: webui_event_t
let id: Int
public let window: Int
public let window: Window
public let eventType: Int
public let element: String
public let bindId: Int

init(window: Int, eventType: Int, element: UnsafeMutablePointer<CChar>?, eventNumber: Int, bindId: Int) {
cStruct = webui_event_t(window: window, event_type: eventType, element: element, event_number: eventNumber, bind_id: bindId)
id = eventNumber
self.window = window
self.window = Window(window)
self.eventType = eventType
self.element = String(cString: element!)
self.bindId = bindId
Expand Down

0 comments on commit f6e5880

Please sign in to comment.