Considering the second point: Initially I tried more SwiftUI-y way with BundLinkButtonStyle (see https://github.com/digitalservicebund/useid-app-ios/pull/201/commits/1c628266e02fa101fa18a26c202117c6224337d0), but because underline() for View is only supported in iOS 16 we needed a workaround for iOS 15. This workaround had multiple downsides: only 1-line text would be supported (overlay is added to the whole view), the line wouldn’t grow with text size, so this fine adjustment to make it look exactly like links in other places wouldn’t be possible (or would require to much effort). So I changed the implementation to separate LinkButton that looks the same on all supported systems and doesn’t require fine tuning.
Considering the second point: Initially I tried more SwiftUI-y way with
BundLinkButtonStyle
(see https://github.com/digitalservicebund/useid-app-ios/pull/201/commits/1c628266e02fa101fa18a26c202117c6224337d0), but becauseunderline()
forView
is only supported in iOS 16 we needed a workaround for iOS 15. This workaround had multiple downsides: only 1-line text would be supported (overlay is added to the whole view), the line wouldn’t grow with text size, so this fine adjustment to make it look exactly like links in other places wouldn’t be possible (or would require to much effort). So I changed the implementation to separateLinkButton
that looks the same on all supported systems and doesn’t require fine tuning.