Giter VIP home page Giter VIP logo

budoux.swift's People

Contributors

griffin-stewie avatar treastrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

treastrain

budoux.swift's Issues

iOS 17で文節の途中で改行される

iOSで文節の途中で改行されてしまいます。

  • 「イ」「ンストール」
  • 「なってい」「る場合は」
  • 「し」「ばらく」

環境はiOS 17.0, Xcode 15.0 betaです。

再現コードは以下になります。

import SwiftUI

import BudouX

struct ContentView: View {
    var body: some View {
        VStack(spacing: 24) {
            BudouXText(verbatim: "ダウンロードありがとうございます!") { _ in true }
            BudouXText("25がApple Watchにインストールされていることを確認しましょう。") { _ in true }
            BudouXText("iPhoneでWatchアプリを開きます。") { _ in true }
            BudouXText("25がインストールされていることを確認します。") { _ in true }
            BudouXText("このような表示になっている場合は、インストールに時間がかかっています。しばらく待ってみてください。") { _ in true }
        }
        .font(.title)
        .multilineTextAlignment(.center)
    }
}

日本語環境でSwiftUIの `BudouXText` がBudouXパーサーを使用しない

スクリーンショット 2023-06-10 11 00 49

環境はmacOS 13.4 Ventura, Xcode 15.0 betaです。

以下再現コードになります。

import SwiftUI

import BudouX

struct ContentView: View {
    var body: some View {
        VStack(spacing: 24) {
            BudouXText("ダウンロードありがとうございます!")
                .font(.title)
            
            BudouXText("25がApple Watchにインストールされていることを確認しましょう。")
            
            BudouXText("iPhoneでWatchアプリを開きます。")
            
            BudouXText("25がインストールされていることを確認します。")
            
            BudouXText("このような表示になっている場合は、インストールに時間がかかっています。しばらく待ってみてください。")
        }
        .multilineTextAlignment(.center)
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.