Releases: andyfinnell/NativeMarkKit
Releases · andyfinnell/NativeMarkKit
Support transparent background color
- Support transparent background color by specifying
.backgroundColor(nil)
Image sizing bug & custom image sizing
- Fixes bug when an image changes the size of the document
- It adds
ImageSizer
protocol to allow custom image sizing, such as scaling to fit the width of the document
Fix regression on custom fonts not retaining weight
Full fix for #10
Fix custom fonts
Fixes certain custom fonts, like Avenir-Roman and Avenir-Medium that would revert to the "base" font (e.g. Avenir-Book).
Fix Bold and Italic on custom fonts
Fix bold and italic on custom fonts. This required removing NativeFontWeight
type since it only worked on system fonts. The removal of the type is theoretically a breaking changing, so bumping this up a major version number. However, bold functionality is available by using the FontTraits
type (which works on system and custom fonts).
armv7 build error
This release fixes a build error for projects that include the armv7 architecture.
SwiftUI & iOS 14 bugs
Changes
- Brought back the SwiftUI wrappers. Put in some workarounds to make them work as expected
- Fixed iOS/tvOS 14 bug where inline backgrounds -- such as those used by inline code spans -- didn't render.
Public release
Changes
- Improved the document (which is still light, but probably enough to be useful)
- Remove
NativeMarkText
because the iOS version can't be made to work - Tiny re-working on custom font specification to reduce boilerplate
Initial version
This is the first tagged release of NativeMarkKit!
What's working
NativeMarkLabel
StyleSheet
s- All of the parsing and rendering for NativeMark
NativeMarkText
(aka SwiftUI) for macOS- Dark mode
- Dynamic Type
What needs work still
NativeMarkText
for UIKit doesn't size properly if the text wraps- Documentation is exceedingly light
NativeMarkString
/NativeMarkStorage
/NativeMarkLayoutManager/
NativeMarkTextContainer` all work for how NativeMarkKit use them internally, but haven't been vetted to see how generally useful they are- Dark Mode on Mojave is mostly, but not completely supported. Mojave is missing APIs to add custom colors that automatically change between dark mode/light mode