Skip to content

Make Quantity.decimalValue publicly readable#13

Merged
iabudiab merged 1 commit intoswiftkube:mainfrom
nautik-io:nautik
Apr 14, 2025
Merged

Make Quantity.decimalValue publicly readable#13
iabudiab merged 1 commit intoswiftkube:mainfrom
nautik-io:nautik

Conversation

@ewilken
Copy link
Contributor

@ewilken ewilken commented Apr 12, 2025

... as we needed the value in some places on the app in order do calculations with quantities. Let me know if this doesn't make sense 😅

@iabudiab
Copy link
Member

@ewilken Sounds good. I don't think there is anything against making it public. But .. see comment in changes

let value: String
var ok: Bool = true
var decimalValue: Decimal = 0
public var decimalValue: Decimal = 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make the setter private?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes perfect sense!

@ewilken ewilken requested a review from iabudiab April 14, 2025 07:23
@ewilken ewilken changed the title Make Quantity.decimalValue public Make Quantity.decimalValue publicly readable Apr 14, 2025
@iabudiab iabudiab merged commit e8212f2 into swiftkube:main Apr 14, 2025
6 checks passed
@ewilken ewilken deleted the nautik branch April 14, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants